Class: RepsClient::RelationshipType

Inherits:
Modelish::Base
  • Object
show all
Defined in:
lib/reps_client/pick_list.rb

Overview

A type of relationship from the REPS service. Equates to the dropdown list labeled ‘Relation to Resident’ on the Leads -> Contact page in REPS.

Note: Be careful of the direction of the relationship type. Many web pages ask about the relationship of the prospect to the contact (Q: For whom are you inquiring? A: Mother), but REPS uses the relationship of the contact to the prospect (Q: What is your relationship to the prospective resident? A: Daughter).

Instance Method Summary collapse

Instance Method Details

#nameString

Returns the display name of the relationship type (e.g. “Daughter”).

Returns:

  • (String)

    the display name of the relationship type (e.g. “Daughter”)



44
# File 'lib/reps_client/pick_list.rb', line 44

property :name, :from => :relationship_name, :type => String

#relationship_type_idint

Returns the id of the relationship type.

Returns:

  • (int)

    the id of the relationship type



41
# File 'lib/reps_client/pick_list.rb', line 41

property :relationship_type_id, :from => :relationship_type_idy, :type => Integer