Class: Flickry::Base
- Inherits:
-
SuperStruct
- Object
- OpenStruct
- SuperStruct
- Flickry::Base
- Defined in:
- lib/flickry/base.rb
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
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
#attributes ⇒ Object
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 |