Class: Flickr::Photo
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data) ⇒ Photo
constructor
A new instance of Photo.
Constructor Details
#initialize(data) ⇒ Photo
Returns a new instance of Photo.
146 147 148 149 150 |
# File 'lib/flickrrb.rb', line 146 def initialize data super @owner = Person.new(data['owner']) if data['owner'].class == Hash = data['tags']['tag'].collect {|t| t['raw']} unless data['tags'].nil? end |