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