Class: Elmas::Contact

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/contact.rb

Instance Attribute Summary

Attributes included from Resource

#attributes, #response, #url

Instance Method Summary collapse

Methods included from Resource

#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?

Methods included from Resource::Sanitizer

#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship

Methods included from Resource::UriMethods

#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Elmas::Resource

Instance Method Details

#base_pathObject



6
7
8
# File 'lib/elmas/resources/contact.rb', line 6

def base_path
  "crm/Contacts"
end

#mandatory_attributesObject



10
11
12
# File 'lib/elmas/resources/contact.rb', line 10

def mandatory_attributes
  [:first_name, :last_name, :account]
end

#other_attributesObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/elmas/resources/contact.rb', line 14

def other_attributes
  [
    :account_name, :birt_date, :birth_name, :birth_name_prefix, :birth_place,
    :business_email, :business_fax, :business_mobile, :business_phone, :business_phone_extention,
    :email, :end_date, :first_name, :gender, :HID, :initials, :is_mailing_excluded,
    :job_title_description, :language, :marketing_notes, :middle_name,
    :mobile, :nationality, :notes, :person, :phone, :picture, :picture_name,
    :social_security_number, :start_date, :title
  ]
end