Class: Slnky::Service::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/slnky/service/subscriber.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject (readonly)

Returns the value of attribute method.



49
50
51
# File 'lib/slnky/service/subscriber.rb', line 49

def method
  @method
end

#nameObject (readonly)

Returns the value of attribute name.



48
49
50
# File 'lib/slnky/service/subscriber.rb', line 48

def name
  @name
end