Class: Me
- Inherits:
-
Sfn::Person
- Object
- Sfn::HasSatisfaction
- Sfn::Resource
- Sfn::Person
- Me
- Defined in:
- lib/satisfaction/person.rb
Instance Attribute Summary
Attributes inherited from Sfn::Resource
Attributes inherited from Sfn::HasSatisfaction
Instance Method Summary collapse
Methods inherited from Sfn::Person
Methods inherited from Sfn::Resource
decode_sfn, #delete, #initialize, #inspect, #load, #loaded?, #put
Methods included from Sfn::Util
Methods included from Sfn::Resource::Attributes
Methods included from Associations
Methods inherited from Sfn::HasSatisfaction
Constructor Details
This class inherits a constructor from Sfn::Resource
Instance Method Details
#path ⇒ Object
16 17 18 |
# File 'lib/satisfaction/person.rb', line 16 def path loaded? ? super : "/me" end |
#was_loaded(result) ⇒ Object
20 21 22 23 |
# File 'lib/satisfaction/person.rb', line 20 def was_loaded(result) @id = self.attributes["id"] setup_associations end |