Class: Flickr::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/flickrrb.rb

Direct Known Subclasses

Group, Person, Photo, Size

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Base



77
78
79
80
81
82
83
84
85
86
87
# File 'lib/flickrrb.rb', line 77

def initialize params
  params.each do |k,v|
    if v.class == Hash
      unless params[k]['_content'].nil?
        v = params[k]['_content']
      end
    end
  
    send "#{k.gsub('?', '')}=", v
  end
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



73
74
75
# File 'lib/flickrrb.rb', line 73

def id
  @id
end