class CrelateClient::PublicApiGetContactResponse
Attributes
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 308 def self.attribute_map { :'attachments' => :'Attachments', :'created_by_id' => :'CreatedBy_Id', :'created_by_name' => :'CreatedBy_Name', :'created_on' => :'CreatedOn', :'id' => :'Id', :'modified_by_id' => :'ModifiedBy_Id', :'modified_by_name' => :'ModifiedBy_Name', :'modified_on' => :'ModifiedOn', :'name' => :'Name', :'owners' => :'Owners', :'status_id' => :'Status_Id', :'status_name' => :'Status_Name', :'address_business_city' => :'Address_Business_City', :'address_business_country' => :'Address_Business_Country', :'address_business_is_primary' => :'Address_Business_IsPrimary', :'address_business_line1' => :'Address_Business_Line1', :'address_business_state' => :'Address_Business_State', :'address_business_zip_code' => :'Address_Business_ZipCode', :'address_home_city' => :'Address_Home_City', :'address_home_country' => :'Address_Home_Country', :'address_home_is_primary' => :'Address_Home_IsPrimary', :'address_home_line1' => :'Address_Home_Line1', :'address_home_state' => :'Address_Home_State', :'address_home_zip_code' => :'Address_Home_ZipCode', :'address_other_city' => :'Address_Other_City', :'address_other_country' => :'Address_Other_Country', :'address_other_is_primary' => :'Address_Other_IsPrimary', :'address_other_line1' => :'Address_Other_Line1', :'address_other_state' => :'Address_Other_State', :'address_other_zip_code' => :'Address_Other_ZipCode', :'current_position_company_id' => :'CurrentPosition_Company_Id', :'current_position_company_name' => :'CurrentPosition_Company_Name', :'current_position_title' => :'CurrentPosition_Title', :'current_position_when_end' => :'CurrentPosition_WhenEnd', :'current_position_when_start' => :'CurrentPosition_WhenStart', :'description' => :'Description', :'education_accreditation_id' => :'Education_Accreditation_Id', :'education_accreditation_name' => :'Education_Accreditation_Name', :'education_honors' => :'Education_Honors', :'education_institution_id' => :'Education_Institution_Id', :'education_institution_name' => :'Education_Institution_Name', :'education_when_end' => :'Education_WhenEnd', :'education_when_start' => :'Education_WhenStart', :'email_address_other' => :'EmailAddress_Other', :'email_address_other_is_primary' => :'EmailAddress_Other_IsPrimary', :'email_address_personal' => :'EmailAddress_Personal', :'email_address_personal_is_primary' => :'EmailAddress_Personal_IsPrimary', :'email_address_work' => :'EmailAddress_Work', :'email_address_work_is_primary' => :'EmailAddress_Work_IsPrimary', :'ethnicity_id' => :'Ethnicity_Id', :'ethnicity_name' => :'Ethnicity_Name', :'external_primary_key' => :'ExternalPrimaryKey', :'first_name' => :'FirstName', :'gender_id' => :'Gender_Id', :'gender_name' => :'Gender_Name', :'key_date_anniversary' => :'KeyDate_Anniversary', :'key_date_birthday' => :'KeyDate_Birthday', :'key_date_other' => :'KeyDate_Other', :'last_name' => :'LastName', :'middle_name' => :'MiddleName', :'nick_name' => :'NickName', :'phone_number_fax' => :'PhoneNumber_Fax', :'phone_number_fax_extension' => :'PhoneNumber_Fax_Extension', :'phone_number_fax_is_primary' => :'PhoneNumber_Fax_IsPrimary', :'phone_number_home' => :'PhoneNumber_Home', :'phone_number_home_extension' => :'PhoneNumber_Home_Extension', :'phone_number_home_is_primary' => :'PhoneNumber_Home_IsPrimary', :'phone_number_mobile' => :'PhoneNumber_Mobile', :'phone_number_mobile_extension' => :'PhoneNumber_Mobile_Extension', :'phone_number_mobile_is_primary' => :'PhoneNumber_Mobile_IsPrimary', :'phone_number_other' => :'PhoneNumber_Other', :'phone_number_other_extension' => :'PhoneNumber_Other_Extension', :'phone_number_other_is_primary' => :'PhoneNumber_Other_IsPrimary', :'phone_number_skype' => :'PhoneNumber_Skype', :'phone_number_skype_extension' => :'PhoneNumber_Skype_Extension', :'phone_number_skype_is_primary' => :'PhoneNumber_Skype_IsPrimary', :'phone_number_work_direct' => :'PhoneNumber_WorkDirect', :'phone_number_work_direct_extension' => :'PhoneNumber_WorkDirect_Extension', :'phone_number_work_direct_is_primary' => :'PhoneNumber_WorkDirect_IsPrimary', :'phone_number_work_main' => :'PhoneNumber_WorkMain', :'phone_number_work_main_extension' => :'PhoneNumber_WorkMain_Extension', :'phone_number_work_main_is_primary' => :'PhoneNumber_WorkMain_IsPrimary', :'preferred_contact_method_type_id' => :'PreferredContactMethodType_Id', :'preferred_contact_method_type_name' => :'PreferredContactMethodType_Name', :'record_type' => :'RecordType', :'related_contact_assistant_first_name' => :'RelatedContact_Assistant_FirstName', :'related_contact_assistant_id' => :'RelatedContact_Assistant_Id', :'related_contact_assistant_is_primary' => :'RelatedContact_Assistant_IsPrimary', :'related_contact_assistant_last_name' => :'RelatedContact_Assistant_LastName', :'related_contact_client_first_name' => :'RelatedContact_Client_FirstName', :'related_contact_client_id' => :'RelatedContact_Client_Id', :'related_contact_client_is_primary' => :'RelatedContact_Client_IsPrimary', :'related_contact_client_last_name' => :'RelatedContact_Client_LastName', :'related_contact_other_first_name' => :'RelatedContact_Other_FirstName', :'related_contact_other_id' => :'RelatedContact_Other_Id', :'related_contact_other_is_primary' => :'RelatedContact_Other_IsPrimary', :'related_contact_other_last_name' => :'RelatedContact_Other_LastName', :'related_contact_referred_by_first_name' => :'RelatedContact_ReferredBy_FirstName', :'related_contact_referred_by_id' => :'RelatedContact_ReferredBy_Id', :'related_contact_referred_by_is_primary' => :'RelatedContact_ReferredBy_IsPrimary', :'related_contact_referred_by_last_name' => :'RelatedContact_ReferredBy_LastName', :'related_contact_spouse_first_name' => :'RelatedContact_Spouse_FirstName', :'related_contact_spouse_id' => :'RelatedContact_Spouse_Id', :'related_contact_spouse_is_primary' => :'RelatedContact_Spouse_IsPrimary', :'related_contact_spouse_last_name' => :'RelatedContact_Spouse_LastName', :'salary' => :'Salary', :'salary_details' => :'SalaryDetails', :'salutation_id' => :'Salutation_Id', :'salutation_name' => :'Salutation_Name', :'social_aim' => :'Social_AIM', :'social_aim_is_primary' => :'Social_AIM_IsPrimary', :'social_facebook_chat' => :'Social_FacebookChat', :'social_facebook_chat_is_primary' => :'Social_FacebookChat_IsPrimary', :'social_face_time' => :'Social_FaceTime', :'social_face_time_is_primary' => :'Social_FaceTime_IsPrimary', :'social_google_talk' => :'Social_GoogleTalk', :'social_google_talk_is_primary' => :'Social_GoogleTalk_IsPrimary', :'social_icq' => :'Social_ICQ', :'social_icq_is_primary' => :'Social_ICQ_IsPrimary', :'social_other' => :'Social_Other', :'social_other_is_primary' => :'Social_Other_IsPrimary', :'social_skype' => :'Social_Skype', :'social_skype_is_primary' => :'Social_Skype_IsPrimary', :'social_twitter' => :'Social_Twitter', :'social_twitter_is_primary' => :'Social_Twitter_IsPrimary', :'social_yahoo_msg' => :'Social_YahooMsg', :'social_yahoo_msg_is_primary' => :'Social_YahooMsg_IsPrimary', :'source_id' => :'Source_Id', :'source_name' => :'Source_Name', :'suffix_id' => :'Suffix_Id', :'suffix_name' => :'Suffix_Name', :'tags' => :'Tags', :'website_blog' => :'Website_Blog', :'website_blog_is_primary' => :'Website_Blog_IsPrimary', :'website_business' => :'Website_Business', :'website_business_is_primary' => :'Website_Business_IsPrimary', :'website_facebook' => :'Website_Facebook', :'website_facebook_is_primary' => :'Website_Facebook_IsPrimary', :'website_linked_in' => :'Website_LinkedIn', :'website_linked_in_is_primary' => :'Website_LinkedIn_IsPrimary', :'website_other' => :'Website_Other', :'website_other_is_primary' => :'Website_Other_IsPrimary', :'website_personal' => :'Website_Personal', :'website_personal_is_primary' => :'Website_Personal_IsPrimary' } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 609 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'Attachments') if (value = attributes[:'Attachments']).is_a?(Array) self.attachments = value end end if attributes.has_key?(:'CreatedBy_Id') self.created_by_id = attributes[:'CreatedBy_Id'] end if attributes.has_key?(:'CreatedBy_Name') self.created_by_name = attributes[:'CreatedBy_Name'] end if attributes.has_key?(:'CreatedOn') self.created_on = attributes[:'CreatedOn'] end if attributes.has_key?(:'Id') self.id = attributes[:'Id'] end if attributes.has_key?(:'ModifiedBy_Id') self.modified_by_id = attributes[:'ModifiedBy_Id'] end if attributes.has_key?(:'ModifiedBy_Name') self.modified_by_name = attributes[:'ModifiedBy_Name'] end if attributes.has_key?(:'ModifiedOn') self.modified_on = attributes[:'ModifiedOn'] end if attributes.has_key?(:'Name') self.name = attributes[:'Name'] end if attributes.has_key?(:'Owners') if (value = attributes[:'Owners']).is_a?(Array) self.owners = value end end if attributes.has_key?(:'Status_Id') self.status_id = attributes[:'Status_Id'] end if attributes.has_key?(:'Status_Name') self.status_name = attributes[:'Status_Name'] end if attributes.has_key?(:'Address_Business_City') self.address_business_city = attributes[:'Address_Business_City'] end if attributes.has_key?(:'Address_Business_Country') self.address_business_country = attributes[:'Address_Business_Country'] end if attributes.has_key?(:'Address_Business_IsPrimary') self.address_business_is_primary = attributes[:'Address_Business_IsPrimary'] end if attributes.has_key?(:'Address_Business_Line1') self.address_business_line1 = attributes[:'Address_Business_Line1'] end if attributes.has_key?(:'Address_Business_State') self.address_business_state = attributes[:'Address_Business_State'] end if attributes.has_key?(:'Address_Business_ZipCode') self.address_business_zip_code = attributes[:'Address_Business_ZipCode'] end if attributes.has_key?(:'Address_Home_City') self.address_home_city = attributes[:'Address_Home_City'] end if attributes.has_key?(:'Address_Home_Country') self.address_home_country = attributes[:'Address_Home_Country'] end if attributes.has_key?(:'Address_Home_IsPrimary') self.address_home_is_primary = attributes[:'Address_Home_IsPrimary'] end if attributes.has_key?(:'Address_Home_Line1') self.address_home_line1 = attributes[:'Address_Home_Line1'] end if attributes.has_key?(:'Address_Home_State') self.address_home_state = attributes[:'Address_Home_State'] end if attributes.has_key?(:'Address_Home_ZipCode') self.address_home_zip_code = attributes[:'Address_Home_ZipCode'] end if attributes.has_key?(:'Address_Other_City') self.address_other_city = attributes[:'Address_Other_City'] end if attributes.has_key?(:'Address_Other_Country') self.address_other_country = attributes[:'Address_Other_Country'] end if attributes.has_key?(:'Address_Other_IsPrimary') self.address_other_is_primary = attributes[:'Address_Other_IsPrimary'] end if attributes.has_key?(:'Address_Other_Line1') self.address_other_line1 = attributes[:'Address_Other_Line1'] end if attributes.has_key?(:'Address_Other_State') self.address_other_state = attributes[:'Address_Other_State'] end if attributes.has_key?(:'Address_Other_ZipCode') self.address_other_zip_code = attributes[:'Address_Other_ZipCode'] end if attributes.has_key?(:'CurrentPosition_Company_Id') self.current_position_company_id = attributes[:'CurrentPosition_Company_Id'] end if attributes.has_key?(:'CurrentPosition_Company_Name') self.current_position_company_name = attributes[:'CurrentPosition_Company_Name'] end if attributes.has_key?(:'CurrentPosition_Title') self.current_position_title = attributes[:'CurrentPosition_Title'] end if attributes.has_key?(:'CurrentPosition_WhenEnd') self.current_position_when_end = attributes[:'CurrentPosition_WhenEnd'] end if attributes.has_key?(:'CurrentPosition_WhenStart') self.current_position_when_start = attributes[:'CurrentPosition_WhenStart'] end if attributes.has_key?(:'Description') self.description = attributes[:'Description'] end if attributes.has_key?(:'Education_Accreditation_Id') self.education_accreditation_id = attributes[:'Education_Accreditation_Id'] end if attributes.has_key?(:'Education_Accreditation_Name') self.education_accreditation_name = attributes[:'Education_Accreditation_Name'] end if attributes.has_key?(:'Education_Honors') if (value = attributes[:'Education_Honors']).is_a?(Array) self.education_honors = value end end if attributes.has_key?(:'Education_Institution_Id') self.education_institution_id = attributes[:'Education_Institution_Id'] end if attributes.has_key?(:'Education_Institution_Name') self.education_institution_name = attributes[:'Education_Institution_Name'] end if attributes.has_key?(:'Education_WhenEnd') self.education_when_end = attributes[:'Education_WhenEnd'] end if attributes.has_key?(:'Education_WhenStart') self.education_when_start = attributes[:'Education_WhenStart'] end if attributes.has_key?(:'EmailAddress_Other') self.email_address_other = attributes[:'EmailAddress_Other'] end if attributes.has_key?(:'EmailAddress_Other_IsPrimary') self.email_address_other_is_primary = attributes[:'EmailAddress_Other_IsPrimary'] end if attributes.has_key?(:'EmailAddress_Personal') self.email_address_personal = attributes[:'EmailAddress_Personal'] end if attributes.has_key?(:'EmailAddress_Personal_IsPrimary') self.email_address_personal_is_primary = attributes[:'EmailAddress_Personal_IsPrimary'] end if attributes.has_key?(:'EmailAddress_Work') self.email_address_work = attributes[:'EmailAddress_Work'] end if attributes.has_key?(:'EmailAddress_Work_IsPrimary') self.email_address_work_is_primary = attributes[:'EmailAddress_Work_IsPrimary'] end if attributes.has_key?(:'Ethnicity_Id') self.ethnicity_id = attributes[:'Ethnicity_Id'] end if attributes.has_key?(:'Ethnicity_Name') self.ethnicity_name = attributes[:'Ethnicity_Name'] end if attributes.has_key?(:'ExternalPrimaryKey') self.external_primary_key = attributes[:'ExternalPrimaryKey'] end if attributes.has_key?(:'FirstName') self.first_name = attributes[:'FirstName'] end if attributes.has_key?(:'Gender_Id') self.gender_id = attributes[:'Gender_Id'] end if attributes.has_key?(:'Gender_Name') self.gender_name = attributes[:'Gender_Name'] end if attributes.has_key?(:'KeyDate_Anniversary') self.key_date_anniversary = attributes[:'KeyDate_Anniversary'] end if attributes.has_key?(:'KeyDate_Birthday') self.key_date_birthday = attributes[:'KeyDate_Birthday'] end if attributes.has_key?(:'KeyDate_Other') self.key_date_other = attributes[:'KeyDate_Other'] end if attributes.has_key?(:'LastName') self.last_name = attributes[:'LastName'] end if attributes.has_key?(:'MiddleName') self.middle_name = attributes[:'MiddleName'] end if attributes.has_key?(:'NickName') self.nick_name = attributes[:'NickName'] end if attributes.has_key?(:'PhoneNumber_Fax') self.phone_number_fax = attributes[:'PhoneNumber_Fax'] end if attributes.has_key?(:'PhoneNumber_Fax_Extension') self.phone_number_fax_extension = attributes[:'PhoneNumber_Fax_Extension'] end if attributes.has_key?(:'PhoneNumber_Fax_IsPrimary') self.phone_number_fax_is_primary = attributes[:'PhoneNumber_Fax_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_Home') self.phone_number_home = attributes[:'PhoneNumber_Home'] end if attributes.has_key?(:'PhoneNumber_Home_Extension') self.phone_number_home_extension = attributes[:'PhoneNumber_Home_Extension'] end if attributes.has_key?(:'PhoneNumber_Home_IsPrimary') self.phone_number_home_is_primary = attributes[:'PhoneNumber_Home_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_Mobile') self.phone_number_mobile = attributes[:'PhoneNumber_Mobile'] end if attributes.has_key?(:'PhoneNumber_Mobile_Extension') self.phone_number_mobile_extension = attributes[:'PhoneNumber_Mobile_Extension'] end if attributes.has_key?(:'PhoneNumber_Mobile_IsPrimary') self.phone_number_mobile_is_primary = attributes[:'PhoneNumber_Mobile_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_Other') self.phone_number_other = attributes[:'PhoneNumber_Other'] end if attributes.has_key?(:'PhoneNumber_Other_Extension') self.phone_number_other_extension = attributes[:'PhoneNumber_Other_Extension'] end if attributes.has_key?(:'PhoneNumber_Other_IsPrimary') self.phone_number_other_is_primary = attributes[:'PhoneNumber_Other_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_Skype') self.phone_number_skype = attributes[:'PhoneNumber_Skype'] end if attributes.has_key?(:'PhoneNumber_Skype_Extension') self.phone_number_skype_extension = attributes[:'PhoneNumber_Skype_Extension'] end if attributes.has_key?(:'PhoneNumber_Skype_IsPrimary') self.phone_number_skype_is_primary = attributes[:'PhoneNumber_Skype_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_WorkDirect') self.phone_number_work_direct = attributes[:'PhoneNumber_WorkDirect'] end if attributes.has_key?(:'PhoneNumber_WorkDirect_Extension') self.phone_number_work_direct_extension = attributes[:'PhoneNumber_WorkDirect_Extension'] end if attributes.has_key?(:'PhoneNumber_WorkDirect_IsPrimary') self.phone_number_work_direct_is_primary = attributes[:'PhoneNumber_WorkDirect_IsPrimary'] end if attributes.has_key?(:'PhoneNumber_WorkMain') self.phone_number_work_main = attributes[:'PhoneNumber_WorkMain'] end if attributes.has_key?(:'PhoneNumber_WorkMain_Extension') self.phone_number_work_main_extension = attributes[:'PhoneNumber_WorkMain_Extension'] end if attributes.has_key?(:'PhoneNumber_WorkMain_IsPrimary') self.phone_number_work_main_is_primary = attributes[:'PhoneNumber_WorkMain_IsPrimary'] end if attributes.has_key?(:'PreferredContactMethodType_Id') self.preferred_contact_method_type_id = attributes[:'PreferredContactMethodType_Id'] end if attributes.has_key?(:'PreferredContactMethodType_Name') self.preferred_contact_method_type_name = attributes[:'PreferredContactMethodType_Name'] end if attributes.has_key?(:'RecordType') if (value = attributes[:'RecordType']).is_a?(Array) self.record_type = value end end if attributes.has_key?(:'RelatedContact_Assistant_FirstName') self.related_contact_assistant_first_name = attributes[:'RelatedContact_Assistant_FirstName'] end if attributes.has_key?(:'RelatedContact_Assistant_Id') self.related_contact_assistant_id = attributes[:'RelatedContact_Assistant_Id'] end if attributes.has_key?(:'RelatedContact_Assistant_IsPrimary') self.related_contact_assistant_is_primary = attributes[:'RelatedContact_Assistant_IsPrimary'] end if attributes.has_key?(:'RelatedContact_Assistant_LastName') self.related_contact_assistant_last_name = attributes[:'RelatedContact_Assistant_LastName'] end if attributes.has_key?(:'RelatedContact_Client_FirstName') self.related_contact_client_first_name = attributes[:'RelatedContact_Client_FirstName'] end if attributes.has_key?(:'RelatedContact_Client_Id') self.related_contact_client_id = attributes[:'RelatedContact_Client_Id'] end if attributes.has_key?(:'RelatedContact_Client_IsPrimary') self.related_contact_client_is_primary = attributes[:'RelatedContact_Client_IsPrimary'] end if attributes.has_key?(:'RelatedContact_Client_LastName') self.related_contact_client_last_name = attributes[:'RelatedContact_Client_LastName'] end if attributes.has_key?(:'RelatedContact_Other_FirstName') self.related_contact_other_first_name = attributes[:'RelatedContact_Other_FirstName'] end if attributes.has_key?(:'RelatedContact_Other_Id') self.related_contact_other_id = attributes[:'RelatedContact_Other_Id'] end if attributes.has_key?(:'RelatedContact_Other_IsPrimary') self.related_contact_other_is_primary = attributes[:'RelatedContact_Other_IsPrimary'] end if attributes.has_key?(:'RelatedContact_Other_LastName') self.related_contact_other_last_name = attributes[:'RelatedContact_Other_LastName'] end if attributes.has_key?(:'RelatedContact_ReferredBy_FirstName') self.related_contact_referred_by_first_name = attributes[:'RelatedContact_ReferredBy_FirstName'] end if attributes.has_key?(:'RelatedContact_ReferredBy_Id') self.related_contact_referred_by_id = attributes[:'RelatedContact_ReferredBy_Id'] end if attributes.has_key?(:'RelatedContact_ReferredBy_IsPrimary') self.related_contact_referred_by_is_primary = attributes[:'RelatedContact_ReferredBy_IsPrimary'] end if attributes.has_key?(:'RelatedContact_ReferredBy_LastName') self.related_contact_referred_by_last_name = attributes[:'RelatedContact_ReferredBy_LastName'] end if attributes.has_key?(:'RelatedContact_Spouse_FirstName') self.related_contact_spouse_first_name = attributes[:'RelatedContact_Spouse_FirstName'] end if attributes.has_key?(:'RelatedContact_Spouse_Id') self.related_contact_spouse_id = attributes[:'RelatedContact_Spouse_Id'] end if attributes.has_key?(:'RelatedContact_Spouse_IsPrimary') self.related_contact_spouse_is_primary = attributes[:'RelatedContact_Spouse_IsPrimary'] end if attributes.has_key?(:'RelatedContact_Spouse_LastName') self.related_contact_spouse_last_name = attributes[:'RelatedContact_Spouse_LastName'] end if attributes.has_key?(:'Salary') self.salary = attributes[:'Salary'] end if attributes.has_key?(:'SalaryDetails') self.salary_details = attributes[:'SalaryDetails'] end if attributes.has_key?(:'Salutation_Id') self.salutation_id = attributes[:'Salutation_Id'] end if attributes.has_key?(:'Salutation_Name') self.salutation_name = attributes[:'Salutation_Name'] end if attributes.has_key?(:'Social_AIM') self.social_aim = attributes[:'Social_AIM'] end if attributes.has_key?(:'Social_AIM_IsPrimary') self.social_aim_is_primary = attributes[:'Social_AIM_IsPrimary'] end if attributes.has_key?(:'Social_FacebookChat') self.social_facebook_chat = attributes[:'Social_FacebookChat'] end if attributes.has_key?(:'Social_FacebookChat_IsPrimary') self.social_facebook_chat_is_primary = attributes[:'Social_FacebookChat_IsPrimary'] end if attributes.has_key?(:'Social_FaceTime') self.social_face_time = attributes[:'Social_FaceTime'] end if attributes.has_key?(:'Social_FaceTime_IsPrimary') self.social_face_time_is_primary = attributes[:'Social_FaceTime_IsPrimary'] end if attributes.has_key?(:'Social_GoogleTalk') self.social_google_talk = attributes[:'Social_GoogleTalk'] end if attributes.has_key?(:'Social_GoogleTalk_IsPrimary') self.social_google_talk_is_primary = attributes[:'Social_GoogleTalk_IsPrimary'] end if attributes.has_key?(:'Social_ICQ') self.social_icq = attributes[:'Social_ICQ'] end if attributes.has_key?(:'Social_ICQ_IsPrimary') self.social_icq_is_primary = attributes[:'Social_ICQ_IsPrimary'] end if attributes.has_key?(:'Social_Other') self.social_other = attributes[:'Social_Other'] end if attributes.has_key?(:'Social_Other_IsPrimary') self.social_other_is_primary = attributes[:'Social_Other_IsPrimary'] end if attributes.has_key?(:'Social_Skype') self.social_skype = attributes[:'Social_Skype'] end if attributes.has_key?(:'Social_Skype_IsPrimary') self.social_skype_is_primary = attributes[:'Social_Skype_IsPrimary'] end if attributes.has_key?(:'Social_Twitter') self.social_twitter = attributes[:'Social_Twitter'] end if attributes.has_key?(:'Social_Twitter_IsPrimary') self.social_twitter_is_primary = attributes[:'Social_Twitter_IsPrimary'] end if attributes.has_key?(:'Social_YahooMsg') self.social_yahoo_msg = attributes[:'Social_YahooMsg'] end if attributes.has_key?(:'Social_YahooMsg_IsPrimary') self.social_yahoo_msg_is_primary = attributes[:'Social_YahooMsg_IsPrimary'] end if attributes.has_key?(:'Source_Id') self.source_id = attributes[:'Source_Id'] end if attributes.has_key?(:'Source_Name') self.source_name = attributes[:'Source_Name'] end if attributes.has_key?(:'Suffix_Id') self.suffix_id = attributes[:'Suffix_Id'] end if attributes.has_key?(:'Suffix_Name') self.suffix_name = attributes[:'Suffix_Name'] end if attributes.has_key?(:'Tags') if (value = attributes[:'Tags']).is_a?(Hash) self.tags = value end end if attributes.has_key?(:'Website_Blog') self.website_blog = attributes[:'Website_Blog'] end if attributes.has_key?(:'Website_Blog_IsPrimary') self.website_blog_is_primary = attributes[:'Website_Blog_IsPrimary'] end if attributes.has_key?(:'Website_Business') self.website_business = attributes[:'Website_Business'] end if attributes.has_key?(:'Website_Business_IsPrimary') self.website_business_is_primary = attributes[:'Website_Business_IsPrimary'] end if attributes.has_key?(:'Website_Facebook') self.website_facebook = attributes[:'Website_Facebook'] end if attributes.has_key?(:'Website_Facebook_IsPrimary') self.website_facebook_is_primary = attributes[:'Website_Facebook_IsPrimary'] end if attributes.has_key?(:'Website_LinkedIn') self.website_linked_in = attributes[:'Website_LinkedIn'] end if attributes.has_key?(:'Website_LinkedIn_IsPrimary') self.website_linked_in_is_primary = attributes[:'Website_LinkedIn_IsPrimary'] end if attributes.has_key?(:'Website_Other') self.website_other = attributes[:'Website_Other'] end if attributes.has_key?(:'Website_Other_IsPrimary') self.website_other_is_primary = attributes[:'Website_Other_IsPrimary'] end if attributes.has_key?(:'Website_Personal') self.website_personal = attributes[:'Website_Personal'] end if attributes.has_key?(:'Website_Personal_IsPrimary') self.website_personal_is_primary = attributes[:'Website_Personal_IsPrimary'] end end
Attribute type mapping.
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 458 def self.swagger_types { :'attachments' => :'Array<PublicApiAttachmentResponse>', :'created_by_id' => :'String', :'created_by_name' => :'String', :'created_on' => :'DateTime', :'id' => :'String', :'modified_by_id' => :'String', :'modified_by_name' => :'String', :'modified_on' => :'DateTime', :'name' => :'String', :'owners' => :'Array<PublicApiRecordOwner>', :'status_id' => :'String', :'status_name' => :'String', :'address_business_city' => :'String', :'address_business_country' => :'String', :'address_business_is_primary' => :'BOOLEAN', :'address_business_line1' => :'String', :'address_business_state' => :'String', :'address_business_zip_code' => :'String', :'address_home_city' => :'String', :'address_home_country' => :'String', :'address_home_is_primary' => :'BOOLEAN', :'address_home_line1' => :'String', :'address_home_state' => :'String', :'address_home_zip_code' => :'String', :'address_other_city' => :'String', :'address_other_country' => :'String', :'address_other_is_primary' => :'BOOLEAN', :'address_other_line1' => :'String', :'address_other_state' => :'String', :'address_other_zip_code' => :'String', :'current_position_company_id' => :'String', :'current_position_company_name' => :'String', :'current_position_title' => :'String', :'current_position_when_end' => :'DateTime', :'current_position_when_start' => :'DateTime', :'description' => :'String', :'education_accreditation_id' => :'String', :'education_accreditation_name' => :'String', :'education_honors' => :'Array<String>', :'education_institution_id' => :'String', :'education_institution_name' => :'String', :'education_when_end' => :'DateTime', :'education_when_start' => :'DateTime', :'email_address_other' => :'String', :'email_address_other_is_primary' => :'BOOLEAN', :'email_address_personal' => :'String', :'email_address_personal_is_primary' => :'BOOLEAN', :'email_address_work' => :'String', :'email_address_work_is_primary' => :'BOOLEAN', :'ethnicity_id' => :'String', :'ethnicity_name' => :'String', :'external_primary_key' => :'String', :'first_name' => :'String', :'gender_id' => :'String', :'gender_name' => :'String', :'key_date_anniversary' => :'DateTime', :'key_date_birthday' => :'DateTime', :'key_date_other' => :'DateTime', :'last_name' => :'String', :'middle_name' => :'String', :'nick_name' => :'String', :'phone_number_fax' => :'String', :'phone_number_fax_extension' => :'String', :'phone_number_fax_is_primary' => :'BOOLEAN', :'phone_number_home' => :'String', :'phone_number_home_extension' => :'String', :'phone_number_home_is_primary' => :'BOOLEAN', :'phone_number_mobile' => :'String', :'phone_number_mobile_extension' => :'String', :'phone_number_mobile_is_primary' => :'BOOLEAN', :'phone_number_other' => :'String', :'phone_number_other_extension' => :'String', :'phone_number_other_is_primary' => :'BOOLEAN', :'phone_number_skype' => :'String', :'phone_number_skype_extension' => :'String', :'phone_number_skype_is_primary' => :'BOOLEAN', :'phone_number_work_direct' => :'String', :'phone_number_work_direct_extension' => :'String', :'phone_number_work_direct_is_primary' => :'BOOLEAN', :'phone_number_work_main' => :'String', :'phone_number_work_main_extension' => :'String', :'phone_number_work_main_is_primary' => :'BOOLEAN', :'preferred_contact_method_type_id' => :'String', :'preferred_contact_method_type_name' => :'String', :'record_type' => :'Array<String>', :'related_contact_assistant_first_name' => :'String', :'related_contact_assistant_id' => :'String', :'related_contact_assistant_is_primary' => :'BOOLEAN', :'related_contact_assistant_last_name' => :'String', :'related_contact_client_first_name' => :'String', :'related_contact_client_id' => :'String', :'related_contact_client_is_primary' => :'BOOLEAN', :'related_contact_client_last_name' => :'String', :'related_contact_other_first_name' => :'String', :'related_contact_other_id' => :'String', :'related_contact_other_is_primary' => :'BOOLEAN', :'related_contact_other_last_name' => :'String', :'related_contact_referred_by_first_name' => :'String', :'related_contact_referred_by_id' => :'String', :'related_contact_referred_by_is_primary' => :'BOOLEAN', :'related_contact_referred_by_last_name' => :'String', :'related_contact_spouse_first_name' => :'String', :'related_contact_spouse_id' => :'String', :'related_contact_spouse_is_primary' => :'BOOLEAN', :'related_contact_spouse_last_name' => :'String', :'salary' => :'Float', :'salary_details' => :'String', :'salutation_id' => :'String', :'salutation_name' => :'String', :'social_aim' => :'String', :'social_aim_is_primary' => :'BOOLEAN', :'social_facebook_chat' => :'String', :'social_facebook_chat_is_primary' => :'BOOLEAN', :'social_face_time' => :'String', :'social_face_time_is_primary' => :'BOOLEAN', :'social_google_talk' => :'String', :'social_google_talk_is_primary' => :'BOOLEAN', :'social_icq' => :'String', :'social_icq_is_primary' => :'BOOLEAN', :'social_other' => :'String', :'social_other_is_primary' => :'BOOLEAN', :'social_skype' => :'String', :'social_skype_is_primary' => :'BOOLEAN', :'social_twitter' => :'String', :'social_twitter_is_primary' => :'BOOLEAN', :'social_yahoo_msg' => :'String', :'social_yahoo_msg_is_primary' => :'BOOLEAN', :'source_id' => :'String', :'source_name' => :'String', :'suffix_id' => :'String', :'suffix_name' => :'String', :'tags' => :'Hash<String, Array<String>>', :'website_blog' => :'String', :'website_blog_is_primary' => :'BOOLEAN', :'website_business' => :'String', :'website_business_is_primary' => :'BOOLEAN', :'website_facebook' => :'String', :'website_facebook_is_primary' => :'BOOLEAN', :'website_linked_in' => :'String', :'website_linked_in_is_primary' => :'BOOLEAN', :'website_other' => :'String', :'website_other_is_primary' => :'BOOLEAN', :'website_personal' => :'String', :'website_personal_is_primary' => :'BOOLEAN' } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1218 def ==(o) return true if self.equal?(o) self.class == o.class && attachments == o.attachments && created_by_id == o.created_by_id && created_by_name == o.created_by_name && created_on == o.created_on && id == o.id && modified_by_id == o.modified_by_id && modified_by_name == o.modified_by_name && modified_on == o.modified_on && name == o.name && owners == o.owners && status_id == o.status_id && status_name == o.status_name && address_business_city == o.address_business_city && address_business_country == o.address_business_country && address_business_is_primary == o.address_business_is_primary && address_business_line1 == o.address_business_line1 && address_business_state == o.address_business_state && address_business_zip_code == o.address_business_zip_code && address_home_city == o.address_home_city && address_home_country == o.address_home_country && address_home_is_primary == o.address_home_is_primary && address_home_line1 == o.address_home_line1 && address_home_state == o.address_home_state && address_home_zip_code == o.address_home_zip_code && address_other_city == o.address_other_city && address_other_country == o.address_other_country && address_other_is_primary == o.address_other_is_primary && address_other_line1 == o.address_other_line1 && address_other_state == o.address_other_state && address_other_zip_code == o.address_other_zip_code && current_position_company_id == o.current_position_company_id && current_position_company_name == o.current_position_company_name && current_position_title == o.current_position_title && current_position_when_end == o.current_position_when_end && current_position_when_start == o.current_position_when_start && description == o.description && education_accreditation_id == o.education_accreditation_id && education_accreditation_name == o.education_accreditation_name && education_honors == o.education_honors && education_institution_id == o.education_institution_id && education_institution_name == o.education_institution_name && education_when_end == o.education_when_end && education_when_start == o.education_when_start && email_address_other == o.email_address_other && email_address_other_is_primary == o.email_address_other_is_primary && email_address_personal == o.email_address_personal && email_address_personal_is_primary == o.email_address_personal_is_primary && email_address_work == o.email_address_work && email_address_work_is_primary == o.email_address_work_is_primary && ethnicity_id == o.ethnicity_id && ethnicity_name == o.ethnicity_name && external_primary_key == o.external_primary_key && first_name == o.first_name && gender_id == o.gender_id && gender_name == o.gender_name && key_date_anniversary == o.key_date_anniversary && key_date_birthday == o.key_date_birthday && key_date_other == o.key_date_other && last_name == o.last_name && middle_name == o.middle_name && nick_name == o.nick_name && phone_number_fax == o.phone_number_fax && phone_number_fax_extension == o.phone_number_fax_extension && phone_number_fax_is_primary == o.phone_number_fax_is_primary && phone_number_home == o.phone_number_home && phone_number_home_extension == o.phone_number_home_extension && phone_number_home_is_primary == o.phone_number_home_is_primary && phone_number_mobile == o.phone_number_mobile && phone_number_mobile_extension == o.phone_number_mobile_extension && phone_number_mobile_is_primary == o.phone_number_mobile_is_primary && phone_number_other == o.phone_number_other && phone_number_other_extension == o.phone_number_other_extension && phone_number_other_is_primary == o.phone_number_other_is_primary && phone_number_skype == o.phone_number_skype && phone_number_skype_extension == o.phone_number_skype_extension && phone_number_skype_is_primary == o.phone_number_skype_is_primary && phone_number_work_direct == o.phone_number_work_direct && phone_number_work_direct_extension == o.phone_number_work_direct_extension && phone_number_work_direct_is_primary == o.phone_number_work_direct_is_primary && phone_number_work_main == o.phone_number_work_main && phone_number_work_main_extension == o.phone_number_work_main_extension && phone_number_work_main_is_primary == o.phone_number_work_main_is_primary && preferred_contact_method_type_id == o.preferred_contact_method_type_id && preferred_contact_method_type_name == o.preferred_contact_method_type_name && record_type == o.record_type && related_contact_assistant_first_name == o.related_contact_assistant_first_name && related_contact_assistant_id == o.related_contact_assistant_id && related_contact_assistant_is_primary == o.related_contact_assistant_is_primary && related_contact_assistant_last_name == o.related_contact_assistant_last_name && related_contact_client_first_name == o.related_contact_client_first_name && related_contact_client_id == o.related_contact_client_id && related_contact_client_is_primary == o.related_contact_client_is_primary && related_contact_client_last_name == o.related_contact_client_last_name && related_contact_other_first_name == o.related_contact_other_first_name && related_contact_other_id == o.related_contact_other_id && related_contact_other_is_primary == o.related_contact_other_is_primary && related_contact_other_last_name == o.related_contact_other_last_name && related_contact_referred_by_first_name == o.related_contact_referred_by_first_name && related_contact_referred_by_id == o.related_contact_referred_by_id && related_contact_referred_by_is_primary == o.related_contact_referred_by_is_primary && related_contact_referred_by_last_name == o.related_contact_referred_by_last_name && related_contact_spouse_first_name == o.related_contact_spouse_first_name && related_contact_spouse_id == o.related_contact_spouse_id && related_contact_spouse_is_primary == o.related_contact_spouse_is_primary && related_contact_spouse_last_name == o.related_contact_spouse_last_name && salary == o.salary && salary_details == o.salary_details && salutation_id == o.salutation_id && salutation_name == o.salutation_name && social_aim == o.social_aim && social_aim_is_primary == o.social_aim_is_primary && social_facebook_chat == o.social_facebook_chat && social_facebook_chat_is_primary == o.social_facebook_chat_is_primary && social_face_time == o.social_face_time && social_face_time_is_primary == o.social_face_time_is_primary && social_google_talk == o.social_google_talk && social_google_talk_is_primary == o.social_google_talk_is_primary && social_icq == o.social_icq && social_icq_is_primary == o.social_icq_is_primary && social_other == o.social_other && social_other_is_primary == o.social_other_is_primary && social_skype == o.social_skype && social_skype_is_primary == o.social_skype_is_primary && social_twitter == o.social_twitter && social_twitter_is_primary == o.social_twitter_is_primary && social_yahoo_msg == o.social_yahoo_msg && social_yahoo_msg_is_primary == o.social_yahoo_msg_is_primary && source_id == o.source_id && source_name == o.source_name && suffix_id == o.suffix_id && suffix_name == o.suffix_name && tags == o.tags && website_blog == o.website_blog && website_blog_is_primary == o.website_blog_is_primary && website_business == o.website_business && website_business_is_primary == o.website_business_is_primary && website_facebook == o.website_facebook && website_facebook_is_primary == o.website_facebook_is_primary && website_linked_in == o.website_linked_in && website_linked_in_is_primary == o.website_linked_in_is_primary && website_other == o.website_other && website_other_is_primary == o.website_other_is_primary && website_personal == o.website_personal && website_personal_is_primary == o.website_personal_is_primary end
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1403 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CrelateClient.const_get(type).new temp_model.build_from_hash(value) end end
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1469 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1382 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end
@see the `==` method @param [Object] Object to be compared
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1369 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1375 def hash [attachments, created_by_id, created_by_name, created_on, id, modified_by_id, modified_by_name, modified_on, name, owners, status_id, status_name, address_business_city, address_business_country, address_business_is_primary, address_business_line1, address_business_state, address_business_zip_code, address_home_city, address_home_country, address_home_is_primary, address_home_line1, address_home_state, address_home_zip_code, address_other_city, address_other_country, address_other_is_primary, address_other_line1, address_other_state, address_other_zip_code, current_position_company_id, current_position_company_name, current_position_title, current_position_when_end, current_position_when_start, description, education_accreditation_id, education_accreditation_name, education_honors, education_institution_id, education_institution_name, education_when_end, education_when_start, email_address_other, email_address_other_is_primary, email_address_personal, email_address_personal_is_primary, email_address_work, email_address_work_is_primary, ethnicity_id, ethnicity_name, external_primary_key, first_name, gender_id, gender_name, key_date_anniversary, key_date_birthday, key_date_other, last_name, middle_name, nick_name, phone_number_fax, phone_number_fax_extension, phone_number_fax_is_primary, phone_number_home, phone_number_home_extension, phone_number_home_is_primary, phone_number_mobile, phone_number_mobile_extension, phone_number_mobile_is_primary, phone_number_other, phone_number_other_extension, phone_number_other_is_primary, phone_number_skype, phone_number_skype_extension, phone_number_skype_is_primary, phone_number_work_direct, phone_number_work_direct_extension, phone_number_work_direct_is_primary, phone_number_work_main, phone_number_work_main_extension, phone_number_work_main_is_primary, preferred_contact_method_type_id, preferred_contact_method_type_name, record_type, related_contact_assistant_first_name, related_contact_assistant_id, related_contact_assistant_is_primary, related_contact_assistant_last_name, related_contact_client_first_name, related_contact_client_id, related_contact_client_is_primary, related_contact_client_last_name, related_contact_other_first_name, related_contact_other_id, related_contact_other_is_primary, related_contact_other_last_name, related_contact_referred_by_first_name, related_contact_referred_by_id, related_contact_referred_by_is_primary, related_contact_referred_by_last_name, related_contact_spouse_first_name, related_contact_spouse_id, related_contact_spouse_is_primary, related_contact_spouse_last_name, salary, salary_details, salutation_id, salutation_name, social_aim, social_aim_is_primary, social_facebook_chat, social_facebook_chat_is_primary, social_face_time, social_face_time_is_primary, social_google_talk, social_google_talk_is_primary, social_icq, social_icq_is_primary, social_other, social_other_is_primary, social_skype, social_skype_is_primary, social_twitter, social_twitter_is_primary, social_yahoo_msg, social_yahoo_msg_is_primary, source_id, source_name, suffix_id, suffix_name, tags, website_blog, website_blog_is_primary, website_business, website_business_is_primary, website_facebook, website_facebook_is_primary, website_linked_in, website_linked_in_is_primary, website_other, website_other_is_primary, website_personal, website_personal_is_primary].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1205 def list_invalid_properties invalid_properties = Array.new return invalid_properties end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1455 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end
Returns the string representation of the object @return [String] String presentation of the object
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1443 def to_s to_hash.to_s end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/crelate_client/models/public_api_get_contact_response.rb, line 1212 def valid? return true end