Class: Flattr::Thing
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Thing
constructor
A new instance of Thing.
Methods inherited from Base
#[], lazy_attr_reader, lazy_attr_writer
Constructor Details
#initialize(attrs = {}) ⇒ Thing
Returns a new instance of Thing.
13 14 15 16 |
# File 'lib/flattr/thing.rb', line 13 def initialize(attrs={}) attrs['owner'] = Flattr::User.new attrs['owner'] if attrs['owner'] super attrs end |