Parent

Methods

StompServer::StompId

Public Class Methods

new() click to toggle source
# File lib/stomp_server/stomp_id.rb, line 12
def initialize
  @host = Socket.gethostname.to_s
end

Public Instance Methods

[](id) click to toggle source
# File lib/stomp_server/stomp_id.rb, line 16
def [](id)
  msgid = sprintf("%.6f",Time.now.to_f).to_s.sub('.','-')
  msgid = @host + '-' + msgid + '-' + id.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.