Sha256: c5eb5c944228f0ca40404c31dd3577fdb86e7355c16e90d69ee7d869abe33422

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

class Company < 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 => 'Person'
    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/company.rb
ruby-satisfaction-0.1.0 lib/satisfaction/company.rb