Class: Markdo::RssCommand::Item
- Inherits:
-
Object
- Object
- Markdo::RssCommand::Item
- Defined in:
- lib/markdo/rss_command.rb
Instance Attribute Summary collapse
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(kwargs) ⇒ Item
constructor
A new instance of Item.
- #link ⇒ Object
Constructor Details
#initialize(kwargs) ⇒ Item
Returns a new instance of Item.
24 25 26 27 |
# File 'lib/markdo/rss_command.rb', line 24 def initialize(kwargs) @title = kwargs[:title] @links = kwargs[:links] end |
Instance Attribute Details
#links ⇒ Object (readonly)
Returns the value of attribute links.
22 23 24 |
# File 'lib/markdo/rss_command.rb', line 22 def links @links end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
22 23 24 |
# File 'lib/markdo/rss_command.rb', line 22 def title @title end |
Instance Method Details
#link ⇒ Object
29 30 31 |
# File 'lib/markdo/rss_command.rb', line 29 def link links && !links.empty? && links[0] end |