Class: Highrise::Person

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

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

#addressObject



18
19
20
# File 'lib/highrise/person.rb', line 18

def address
  contact_data.addresses.first
end

#companyObject



10
11
12
# File 'lib/highrise/person.rb', line 10

def company
  Company.find(company_id) if company_id
end

#labelObject



26
27
28
# File 'lib/highrise/person.rb', line 26

def label
  'Party'
end

#nameObject



14
15
16
# File 'lib/highrise/person.rb', line 14

def name
  "#{first_name rescue ''} #{last_name rescue ''}".strip
end

#web_addressObject



22
23
24
# File 'lib/highrise/person.rb', line 22

def web_address
  contact_data.web_addresses.first
end