Class: Flickr::Object::Photo::Exif

Inherits:
Flickr::Object show all
Defined in:
lib/flickr/object/photo/exif.rb,
lib/flickr/object/attribute_locations/photo/exif.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Attributes inherited from Flickr::Object

#access_token, #attributes

Instance Method Summary collapse

Methods inherited from Flickr::Object

#==, attribute, #initialize, #inspect, #matches?, #update

Methods included from Attributes

#attribute, #attributes

Methods included from AutoloadHelper

#autoload_dir, #autoload_names

Constructor Details

This class inherits a constructor from Flickr::Object

Instance Attribute Details

#itemsList[Item] (readonly)

Returns:



16
# File 'lib/flickr/object/photo/exif.rb', line 16

attribute :items,  List[Item]

Instance Method Details

#[](label) ⇒ String

Fetches the item with the given label and grabs the value.

Parameters:

  • Label of the exif data

Returns:



24
25
26
27
# File 'lib/flickr/object/photo/exif.rb', line 24

def [](label)
  item = items.find { |item| item.label == label }
  item.clean || item.raw
end