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

Version Path
nullstyle-ruby-satisfaction-0.4.0 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.3.0 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.4.0 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.4.1 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.4.2 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.4.3 lib/satisfaction/company.rb
pius-ruby-satisfaction-0.4.4 lib/satisfaction/company.rb
ruby-satisfaction-0.6.7 lib/satisfaction/company.rb
ruby-satisfaction-0.6.5 lib/satisfaction/company.rb
ruby-satisfaction-0.6.4 lib/satisfaction/company.rb
ruby-satisfaction-0.6.3 lib/satisfaction/company.rb
ruby-satisfaction-0.6.2 lib/satisfaction/company.rb
ruby-satisfaction-0.6.1 lib/satisfaction/company.rb
ruby-satisfaction-0.3.0 lib/satisfaction/company.rb
ruby-satisfaction-0.4.0 lib/satisfaction/company.rb