Class: Slnky::Service::Subscription
- Inherits:
-
Object
- Object
- Slnky::Service::Subscription
- Defined in:
- lib/slnky/service/subscriber.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, method) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(name, method) ⇒ Subscription
Returns a new instance of Subscription.
51 52 53 54 |
# File 'lib/slnky/service/subscriber.rb', line 51 def initialize(name, method) @name = name @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
49 50 51 |
# File 'lib/slnky/service/subscriber.rb', line 49 def method @method end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/slnky/service/subscriber.rb', line 48 def name @name end |