Class: Toot::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/toot/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject

Returns the value of attribute channel.



4
5
6
# File 'lib/toot/subscription.rb', line 4

def channel
  @channel
end

#handlerObject

Returns the value of attribute handler.



4
5
6
# File 'lib/toot/subscription.rb', line 4

def handler
  @handler
end

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/toot/subscription.rb', line 4

def source
  @source
end