Class: Highrise::Person
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Taggable
#tag!, #tags, #untag!, #untag_id!
Methods included from Pagination
included
Methods inherited from Subject
#add_note, #emails, #notes, #upcoming_tasks
Class Method Details
.find_all_across_pages_since(time) ⇒ Object
6
7
8
|
# File 'lib/highrise/person.rb', line 6
def self.find_all_across_pages_since(time)
find_all_across_pages(:params => { :since => time.utc.to_s(:db).gsub(/[^\d]/, '') })
end
|
Instance Method Details
#address ⇒ Object
18
19
20
|
# File 'lib/highrise/person.rb', line 18
def address
contact_data.addresses.first
end
|
#company ⇒ Object
10
11
12
|
# File 'lib/highrise/person.rb', line 10
def company
Company.find(company_id) if company_id
end
|
#label ⇒ Object
26
27
28
|
# File 'lib/highrise/person.rb', line 26
def label
'Party'
end
|
#name ⇒ Object
14
15
16
|
# File 'lib/highrise/person.rb', line 14
def name
"#{first_name rescue ''} #{last_name rescue ''}".strip
end
|
#web_address ⇒ Object
22
23
24
|
# File 'lib/highrise/person.rb', line 22
def web_address
contact_data.web_addresses.first
end
|