Class: Highrise::Company

Inherits:
Subject
  • Object
show all
Includes:
CustomFields, Pagination, Searchable, Taggable
Defined in:
lib/highrise/company.rb

Instance Method Summary collapse

Methods included from CustomFields

#convert_method_to_field_label, #field, #method_missing, #new_subject_data, #set_field_value, #transform_subject_field_label

Methods included from Searchable

included

Methods included from Taggable

#tag!, #tags, #untag!

Methods included from Pagination

included

Methods inherited from Subject

#add_note, #add_task, #emails, #notes, #upcoming_tasks

Methods inherited from Base

headers, oauth_token=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Highrise::CustomFields

Instance Method Details

#labelObject



12
13
14
# File 'lib/highrise/company.rb', line 12

def label
  'Party'
end

#peopleObject



8
9
10
# File 'lib/highrise/company.rb', line 8

def people
  Person.find_all_across_pages(:from => "/companies/#{id}/people.xml")
end