Class: Me

Inherits:
Sfn::Person show all
Defined in:
lib/satisfaction/person.rb

Instance Attribute Summary

Attributes inherited from Sfn::Resource

#id

Attributes inherited from Sfn::HasSatisfaction

#satisfaction

Instance Method Summary collapse

Methods inherited from Sfn::Person

#setup_associations

Methods inherited from Sfn::Resource

decode_sfn, #delete, #initialize, #inspect, #load, #loaded?, #put

Methods included from Sfn::Util

#requestify

Methods included from Sfn::Resource::Attributes

included

Methods included from Associations

#belongs_to, #has_many

Methods inherited from Sfn::HasSatisfaction

#initialize

Constructor Details

This class inherits a constructor from Sfn::Resource

Instance Method Details

#pathObject



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