Class: Sfn::Person
- Inherits:
-
Resource
- Object
- HasSatisfaction
- Resource
- Sfn::Person
- Defined in:
- lib/satisfaction/person.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Resource
Attributes inherited from HasSatisfaction
Instance Method Summary collapse
Methods inherited from Resource
decode_sfn, #delete, #initialize, #inspect, #load, #loaded?, #put, #was_loaded
Methods included from Util
Methods included from Resource::Attributes
Methods included from Associations
Methods inherited from HasSatisfaction
Constructor Details
This class inherits a constructor from Sfn::Resource
Instance Method Details
#path ⇒ Object
4 5 6 |
# File 'lib/satisfaction/person.rb', line 4 def path "/people/#{@id}" end |
#setup_associations ⇒ Object
8 9 10 11 12 |
# File 'lib/satisfaction/person.rb', line 8 def setup_associations has_many :replies, :url => "#{path}/replies" has_many :topics, :url => "#{path}/topics" has_many :followed_topics, :url => "#{path}/followed/topics", :class_name => 'Sfn::Topic' end |