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.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def @authorid end |
#authorname ⇒ Object
Returns the value of attribute authorname.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def @authorname end |
#datecreated ⇒ Object
Returns the value of attribute datecreated.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def datecreated @datecreated end |
#id ⇒ Object
Returns the value of attribute id.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def id @id end |
#permalink ⇒ Object
Returns the value of attribute permalink.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def permalink @permalink end |
#text ⇒ Object
Returns the value of attribute text.
798 799 800 |
# File 'lib/flickr/base.rb', line 798 def text @text end |
Class Method Details
.from_xml(xml, flickr = nil) ⇒ Object
800 801 802 803 804 805 806 807 808 809 810 |
# File 'lib/flickr/base.rb', line 800 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 |