Sha256: 882348ab22fe214f88bae1f37bd52de22b1043413ab6f7b04c8ad58f44b11868
Contents?: true
Size: 435 Bytes
Versions: 15
Compression:
Stored size: 435 Bytes
Contents
class Sfn::Product < Sfn::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
15 entries across 15 versions & 3 rubygems