Class: WampClient::Subscription
- Inherits:
-
Object
- Object
- WampClient::Subscription
- Defined in:
- lib/wamp_client/session.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#id ⇒ Object
Returns the value of attribute id.
-
#options ⇒ Object
Returns the value of attribute options.
-
#session ⇒ Object
Returns the value of attribute session.
-
#topic ⇒ Object
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic, handler, options, session, id) ⇒ Subscription
constructor
A new instance of Subscription.
- #unsubscribe ⇒ Object
Constructor Details
#initialize(topic, handler, options, session, id) ⇒ Subscription
Returns a new instance of Subscription.
96 97 98 99 100 101 102 |
# File 'lib/wamp_client/session.rb', line 96 def initialize(topic, handler, , session, id) self.topic = topic self.handler = handler self. = self.session = session self.id = id end |
Instance Attribute Details
#handler ⇒ Object
Returns the value of attribute handler.
94 95 96 |
# File 'lib/wamp_client/session.rb', line 94 def handler @handler end |
#id ⇒ Object
Returns the value of attribute id.
94 95 96 |
# File 'lib/wamp_client/session.rb', line 94 def id @id end |
#options ⇒ Object
Returns the value of attribute options.
94 95 96 |
# File 'lib/wamp_client/session.rb', line 94 def end |
#session ⇒ Object
Returns the value of attribute session.
94 95 96 |
# File 'lib/wamp_client/session.rb', line 94 def session @session end |
#topic ⇒ Object
Returns the value of attribute topic.
94 95 96 |
# File 'lib/wamp_client/session.rb', line 94 def topic @topic end |
Instance Method Details
#unsubscribe ⇒ Object
104 105 106 |
# File 'lib/wamp_client/session.rb', line 104 def unsubscribe self.session.unsubscribe(self) end |