Class: Wamp::Client::Manager::SubscriptionObject
- Inherits:
-
Object
- Object
- Wamp::Client::Manager::SubscriptionObject
- Defined in:
- lib/wamp/client/manager/subscription.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) ⇒ SubscriptionObject
constructor
A new instance of SubscriptionObject.
- #unsubscribe ⇒ Object
Constructor Details
#initialize(topic, handler, options, session, id) ⇒ SubscriptionObject
10 11 12 13 14 15 16 |
# File 'lib/wamp/client/manager/subscription.rb', line 10 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.
8 9 10 |
# File 'lib/wamp/client/manager/subscription.rb', line 8 def handler @handler end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/wamp/client/manager/subscription.rb', line 8 def id @id end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/wamp/client/manager/subscription.rb', line 8 def end |
#session ⇒ Object
Returns the value of attribute session.
8 9 10 |
# File 'lib/wamp/client/manager/subscription.rb', line 8 def session @session end |
#topic ⇒ Object
Returns the value of attribute topic.
8 9 10 |
# File 'lib/wamp/client/manager/subscription.rb', line 8 def topic @topic end |
Instance Method Details
#unsubscribe ⇒ Object
18 19 20 |
# File 'lib/wamp/client/manager/subscription.rb', line 18 def unsubscribe self.session.unsubscribe(self) end |