Sha256: 0b38e8f0f2e609f3318555808f71577e5243c436412b1d2814efe380643419e0

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

module Highrise
  class Person < Subject
    include Pagination
    include Taggable
    include Searchable
    
    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

8 entries across 8 versions & 1 rubygems

Version Path
highrise-3.1.1 lib/highrise/person.rb
highrise-3.1.0 lib/highrise/person.rb
highrise-3.1.0.pre lib/highrise/person.rb
highrise-3.0.5 lib/highrise/person.rb
highrise-3.0.4 lib/highrise/person.rb
highrise-3.0.3 lib/highrise/person.rb
highrise-3.0.1 lib/highrise/person.rb
highrise-3.0.0 lib/highrise/person.rb