Class: AutotaskRuby::Contact
- Inherits:
-
Object
- Object
- AutotaskRuby::Contact
- Includes:
- Entity
- Defined in:
- lib/autotask_ruby/contact.rb
Overview
Represents the Autotask Entity Contact
Constant Summary collapse
- FIELDS =
%i[id Active AddressLine City Country CreateDate EMailAddress Extension FirstName AccountID LastName MobilePhone Phone State Title ZipCode].freeze .each do |field| attr_accessor :"#{field.to_s.underscore}" end
Constants included from Constants
AutotaskRuby::Constants::AUTOTASK_TIME_FORMAT
Instance Method Summary collapse
Methods included from Entity
#build, #create, #field_set, #fields_to_xml, #format_field_to_xml, included, #initialize, #to_bool, #to_date_time, #update
Methods included from Association
#belongs_to, #has_many, #has_one
Instance Method Details
#email ⇒ Object
21 22 23 |
# File 'lib/autotask_ruby/contact.rb', line 21 def email @e_mail_address end |
#full_name ⇒ Object
17 18 19 |
# File 'lib/autotask_ruby/contact.rb', line 17 def full_name [@first_name, @last_name].join(' ') end |
#post_initialize ⇒ Object
13 14 15 |
# File 'lib/autotask_ruby/contact.rb', line 13 def post_initialize belongs_to :account end |