Class: StompServer::StompUser
- Inherits:
-
Object
- Object
- StompServer::StompUser
- Defined in:
- lib/stomp_server_ng/stomp_user.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize ⇒ StompUser
constructor
A new instance of StompUser.
- #stomp_send_data(data) ⇒ Object
Constructor Details
#initialize ⇒ StompUser
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
#data ⇒ Object
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 |