Class: Wamp::Client::Subscription
- Inherits:
-
Object
- Object
- Wamp::Client::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.
117 118 119 120 121 122 123 |
# File 'lib/wamp/client/session.rb', line 117 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.
115 116 117 |
# File 'lib/wamp/client/session.rb', line 115 def handler @handler end |
#id ⇒ Object
Returns the value of attribute id.
115 116 117 |
# File 'lib/wamp/client/session.rb', line 115 def id @id end |
#options ⇒ Object
Returns the value of attribute options.
115 116 117 |
# File 'lib/wamp/client/session.rb', line 115 def @options end |
#session ⇒ Object
Returns the value of attribute session.
115 116 117 |
# File 'lib/wamp/client/session.rb', line 115 def session @session end |
#topic ⇒ Object
Returns the value of attribute topic.
115 116 117 |
# File 'lib/wamp/client/session.rb', line 115 def topic @topic end |
Instance Method Details
#unsubscribe ⇒ Object
125 126 127 |
# File 'lib/wamp/client/session.rb', line 125 def unsubscribe self.session.unsubscribe(self) end |