Sha256: 7a869de3c061b4b8322f5a374f258ee4d5523d359cf7f88dfe0d442092ba6522

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

module Highrise
  class Person < Subject
    include Pagination
    include Taggable
    include Searchable

    def tags
      self.attributes.has_key?("tags") ? self.attributes["tags"] : super
    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

3 entries across 3 versions & 1 rubygems

Version Path
highrise-3.1.6 lib/highrise/person.rb
highrise-3.1.5 lib/highrise/person.rb
highrise-3.1.2 lib/highrise/person.rb