Class: Highrise::Person

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pagination

included

Methods inherited from Subject

#emails, #notes, #upcoming_tasks

Class Method Details

.find_all_across_pages_since(time) ⇒ Object



5
6
7
# File 'lib/highrise/person.rb', line 5

def self.find_all_across_pages_since(time)
  find_all_across_pages(:params => { :since => time.to_s(:db).gsub(/[^\d]/, '') })
end

Instance Method Details

#companyObject



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

def company
  Company.find(company_id) if company_id
end

#nameObject



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

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