Sha256: 6799c2604323dac7597c17f4734ada622f756e3a0487326e6cb2cb847a1712fa

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

module Highrise
  class Person < Subject
    include Pagination
    include Taggable
    
    def self.find_all_across_pages_since(time)
      find_all_across_pages(:params => { :since => time.utc.to_s(:db).gsub(/[^\d]/, '') })
    end
  
    def company
      Company.find(company_id) if company_id
    end
  
    def name
      "#{first_name rescue ''} #{last_name rescue ''}".strip
    end
    
    def address
      contact_data.addresses.first
    end
    
    def web_address
      contact_data.web_addresses.first
    end
    
    def label
      'Party'
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rogerio-augusto-highrise-2.0.4 lib/highrise/person.rb
rogerio-augusto-highrise-2.0.3 lib/highrise/person.rb
rogerio-augusto-highrise-2.0.2 lib/highrise/person.rb
highrise-2.0.1 lib/highrise/person.rb
highrise-2.0.0 lib/highrise/person.rb
highrise-1.2.0 lib/highrise/person.rb