Class: StompServer::StompUser

Inherits:
Object
  • Object
show all
Defined in:
lib/stomp_server_ng/stomp_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStompUser

Returns a new instance of StompUser.



10
11
12
# File 'lib/stomp_server_ng/stomp_user.rb', line 10

def initialize
  @data = []
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



9
10
11
# File 'lib/stomp_server_ng/stomp_user.rb', line 9

def data
  @data
end

Instance Method Details

#stomp_send_data(data) ⇒ Object



13
14
15
# File 'lib/stomp_server_ng/stomp_user.rb', line 13

def stomp_send_data(data)
  @data << data.to_s
end