Class: Flickr::Exif
- Inherits:
-
Object
- Object
- Flickr::Exif
- Defined in:
- lib/flickr/base.rb
Instance Attribute Summary collapse
-
#clean ⇒ Object
Returns the value of attribute clean.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#tagspace ⇒ Object
readonly
Returns the value of attribute tagspace.
-
#tagspaceid ⇒ Object
readonly
Returns the value of attribute tagspaceid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tagspace, tagspaceid, tag, label) ⇒ Exif
constructor
A new instance of Exif.
Constructor Details
#initialize(tagspace, tagspaceid, tag, label) ⇒ Exif
Returns a new instance of Exif.
492 493 494 495 496 497 |
# File 'lib/flickr/base.rb', line 492 def initialize(,,tag,label) @tagspace = @tagspaceid = @tag = tag @label = label end |
Instance Attribute Details
#clean ⇒ Object
Returns the value of attribute clean.
491 492 493 |
# File 'lib/flickr/base.rb', line 491 def clean @clean end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
490 491 492 |
# File 'lib/flickr/base.rb', line 490 def label @label end |
#raw ⇒ Object
Returns the value of attribute raw.
491 492 493 |
# File 'lib/flickr/base.rb', line 491 def raw @raw end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
490 491 492 |
# File 'lib/flickr/base.rb', line 490 def tag @tag end |
#tagspace ⇒ Object (readonly)
Returns the value of attribute tagspace.
490 491 492 |
# File 'lib/flickr/base.rb', line 490 def @tagspace end |
#tagspaceid ⇒ Object (readonly)
Returns the value of attribute tagspaceid.
490 491 492 |
# File 'lib/flickr/base.rb', line 490 def @tagspaceid end |
Class Method Details
.from_xml(element) ⇒ Object
499 500 501 502 503 504 505 506 507 |
# File 'lib/flickr/base.rb', line 499 def self.from_xml(element) att = element.attributes exif = Flickr::Exif.new(att['tagspace'],att['tagspaceid'].to_i, att['tag'],att['label']) exif.raw=element.elements['raw'].text if element.elements['raw'] exif.clean=element.elements['clean'].text if element.elements['clean'] return exif end |