Class: Flattr::Thing

Inherits:
Base
  • Object
show all
Defined in:
lib/flattr/thing.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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