Class: Flickry::Base

Inherits:
SuperStruct show all
Defined in:
lib/flickry/base.rb

Direct Known Subclasses

Location, Person, Photo, Size, Sizes

Instance Method Summary collapse

Methods inherited from SuperStruct

#[], #[]=, #each, #each_pair, #members

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/flickry/base.rb', line 3

def initialize(*args)
  super(*args)
end

Instance Method Details

#attributesObject



7
8
9
10
11
12
13
# File 'lib/flickry/base.rb', line 7

def attributes
  attrs = {}
  each_pair do |m,v|
    attrs[m] = v
  end
  attrs
end