Class: Goatless::RssItem

Inherits:
Object
  • Object
show all
Defined in:
lib/goatless/rss_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def author
  @author
end

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def body
  @body
end

Returns the value of attribute permalink.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def permalink
  @permalink
end

#pub_dateObject

Returns the value of attribute pub_date.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def pub_date
  @pub_date
end

#security_typeObject

Returns the value of attribute security_type.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def security_type
  @security_type
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def title
  @title
end

#xml_elementObject

Returns the value of attribute xml_element.



4
5
6
# File 'lib/goatless/rss_item.rb', line 4

def xml_element
  @xml_element
end

Instance Method Details

#==(an_rss_item) ⇒ Object



10
11
12
# File 'lib/goatless/rss_item.rb', line 10

def ==(an_rss_item)
  self.permalink == an_rss_item.permalink && !self.permalink.nil?
end

#public?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/goatless/rss_item.rb', line 6

def public?
  @security_type == 'public'
end