Sha256: 73b612c0327deaafefb8a2ede6be757709de028b7c6694b904c5cea4ae4e839e

Contents?: true

Size: 538 Bytes

Versions: 4

Compression:

Stored size: 538 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
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
kmayer-highrise-1.0.1 lib/highrise/person.rb
highrise-1.0.4 lib/highrise/person.rb
highrise-1.0.3 lib/highrise/person.rb
highrise-1.0.2 lib/highrise/person.rb