Class: Printavo::Contact
Instance Method Summary
collapse
#==, #[], #dig, #initialize, #inspect, #to_h
Instance Method Details
#created_at ⇒ Object
12
|
# File 'lib/printavo/models/contact.rb', line 12
def created_at = self['createdAt']
|
#email ⇒ Object
9
|
# File 'lib/printavo/models/contact.rb', line 9
def email = self['email']
|
#fax ⇒ Object
11
|
# File 'lib/printavo/models/contact.rb', line 11
def fax = self['fax']
|
#first_name ⇒ Object
7
|
# File 'lib/printavo/models/contact.rb', line 7
def first_name = self['firstName']
|
#full_name ⇒ Object
15
16
17
|
# File 'lib/printavo/models/contact.rb', line 15
def full_name
self['fullName'] || [first_name, last_name].compact.join(' ').strip
end
|
#id ⇒ Object
6
|
# File 'lib/printavo/models/contact.rb', line 6
def id = self['id']
|
#last_name ⇒ Object
8
|
# File 'lib/printavo/models/contact.rb', line 8
def last_name = self['lastName']
|
#phone ⇒ Object
10
|
# File 'lib/printavo/models/contact.rb', line 10
def phone = self['phone']
|
#updated_at ⇒ Object
13
|
# File 'lib/printavo/models/contact.rb', line 13
def updated_at = self['updatedAt']
|