Class: Toot::Subscription
- Inherits:
-
Object
- Object
- Toot::Subscription
- Defined in:
- lib/toot/subscription.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, channel:, handler:) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(source:, channel:, handler:) ⇒ Subscription
Returns a new instance of Subscription.
6 7 8 9 10 |
# File 'lib/toot/subscription.rb', line 6 def initialize(source:, channel:, handler:) @source = source @channel = channel @handler = handler end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
4 5 6 |
# File 'lib/toot/subscription.rb', line 4 def channel @channel end |
#handler ⇒ Object
Returns the value of attribute handler.
4 5 6 |
# File 'lib/toot/subscription.rb', line 4 def handler @handler end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/toot/subscription.rb', line 4 def source @source end |