Class: Flickr::Comment
- Inherits:
-
Object
- Object
- Flickr::Comment
- Defined in:
- lib/flickr/base.rb
Instance Attribute Summary collapse
-
#authorid ⇒ Object
Returns the value of attribute authorid.
-
#authorname ⇒ Object
Returns the value of attribute authorname.
-
#datecreated ⇒ Object
Returns the value of attribute datecreated.
-
#id ⇒ Object
Returns the value of attribute id.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
-
#text ⇒ Object
Returns the value of attribute text.
Class Method Summary collapse
Instance Attribute Details
#authorid ⇒ Object
Returns the value of attribute authorid.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def @authorid end |
#authorname ⇒ Object
Returns the value of attribute authorname.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def @authorname end |
#datecreated ⇒ Object
Returns the value of attribute datecreated.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def datecreated @datecreated end |
#id ⇒ Object
Returns the value of attribute id.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def id @id end |
#permalink ⇒ Object
Returns the value of attribute permalink.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def permalink @permalink end |
#text ⇒ Object
Returns the value of attribute text.
797 798 799 |
# File 'lib/flickr/base.rb', line 797 def text @text end |
Class Method Details
.from_xml(xml, flickr = nil) ⇒ Object
799 800 801 802 803 804 805 806 807 808 809 |
# File 'lib/flickr/base.rb', line 799 def self.from_xml(xml, flickr=nil) att = xml.attributes c = new c.id = att['id'] c. = att['author'] c. = att['authorname'] c.datecreated = Time.at(att['datecreate'].to_i) c.permalink = att['permalink'] c.text = xml.text c end |