Class: Goatless::RssItem
- Inherits:
-
Object
- Object
- Goatless::RssItem
- Defined in:
- lib/goatless/rss_item.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#body ⇒ Object
Returns the value of attribute body.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
-
#security_type ⇒ Object
Returns the value of attribute security_type.
-
#title ⇒ Object
Returns the value of attribute title.
-
#xml_element ⇒ Object
Returns the value of attribute xml_element.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
4 5 6 |
# File 'lib/goatless/rss_item.rb', line 4 def end |
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/goatless/rss_item.rb', line 4 def body @body end |
#permalink ⇒ Object
Returns the value of attribute permalink.
4 5 6 |
# File 'lib/goatless/rss_item.rb', line 4 def permalink @permalink end |
#pub_date ⇒ Object
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_type ⇒ Object
Returns the value of attribute security_type.
4 5 6 |
# File 'lib/goatless/rss_item.rb', line 4 def security_type @security_type end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/goatless/rss_item.rb', line 4 def title @title end |
#xml_element ⇒ Object
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
6 7 8 |
# File 'lib/goatless/rss_item.rb', line 6 def public? @security_type == 'public' end |