Sha256: 747e8db2f3e6d50e5fef817d3f79a7c67c888042edbea08b0dabdf0886140720
Contents?: true
Size: 698 Bytes
Versions: 13
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module AutotaskRuby # Represents the Autotask Entity Contact class Contact include Entity 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 def post_initialize belongs_to :account end def full_name [@first_name, @last_name].join(' ') end def email @e_mail_address end end end
Version data entries
13 entries across 13 versions & 1 rubygems