Sha256: 9621e01e0f1efa2a1db95bca426d716332f438d883e8008c7d78e7fe82f85ab0
Contents?: true
Size: 447 Bytes
Versions: 15
Compression:
Stored size: 447 Bytes
Contents
class Sfn::Company < Sfn::Resource attributes :domain, :name, :logo, :description def path "/companies/#{@id}" end def setup_associations has_many :people, :url => "#{path}/people" has_many :topics, :url => "#{path}/topics" has_many :products, :url => "#{path}/products" has_many :employees, :url => "#{path}/employees", :class_name => 'Sfn::Person' has_many :tags, :url => "#{path}/tags" end end
Version data entries
15 entries across 15 versions & 3 rubygems