Sha256: 5a1edd0b13f82ba855c6a5a716af2a96ab7fabb46ccfa913b19a95c185c5a6f1
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
class Product < Resource attributes :name, :url, :image, :description attribute :last_active_at, :type => Time attribute :created_at, :type => Time def path "/products/#{@id}" end def setup_associations has_many :topics, :url => "#{path}/topics" has_many :people, :url => "#{path}/people" has_many :companies, :url => "#{path}/companies" has_many :tags, :url => "#{path}/tags" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-satisfaction-0.2.0 | lib/satisfaction/product.rb |
ruby-satisfaction-0.1.0 | lib/satisfaction/product.rb |