Class: Printavo::Contact

Inherits:
Models::Base show all
Defined in:
lib/printavo/models/contact.rb

Instance Method Summary collapse

Methods inherited from Models::Base

#==, #[], #dig, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Printavo::Models::Base

Instance Method Details

#created_atObject



12
# File 'lib/printavo/models/contact.rb', line 12

def created_at = self['createdAt']

#emailObject



9
# File 'lib/printavo/models/contact.rb', line 9

def email      = self['email']

#faxObject



11
# File 'lib/printavo/models/contact.rb', line 11

def fax        = self['fax']

#first_nameObject



7
# File 'lib/printavo/models/contact.rb', line 7

def first_name = self['firstName']

#full_nameObject



15
16
17
# File 'lib/printavo/models/contact.rb', line 15

def full_name
  self['fullName'] || [first_name, last_name].compact.join(' ').strip
end

#idObject



6
# File 'lib/printavo/models/contact.rb', line 6

def id         = self['id']

#last_nameObject



8
# File 'lib/printavo/models/contact.rb', line 8

def last_name  = self['lastName']

#phoneObject



10
# File 'lib/printavo/models/contact.rb', line 10

def phone      = self['phone']

#updated_atObject



13
# File 'lib/printavo/models/contact.rb', line 13

def updated_at = self['updatedAt']