Class: Flickr::Base
- Inherits:
-
Object
- Object
- Flickr::Base
- Defined in:
- lib/flickrrb.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params) ⇒ Base
constructor
A new instance of Base.
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
#id ⇒ Object
Returns the value of attribute id.
73 74 75 |
# File 'lib/flickrrb.rb', line 73 def id @id end |