Class: Markdo::RssCommand::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/markdo/rss_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute links.



22
23
24
# File 'lib/markdo/rss_command.rb', line 22

def links
  @links
end

#titleObject (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



29
30
31
# File 'lib/markdo/rss_command.rb', line 29

def link
  links && !links.empty? && links[0]
end