Class: XeroKiwi::Accounting::Contact

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/xero_kiwi/accounting/contact.rb

Overview

Represents a Xero Contact returned by the Accounting API.

See: developer.xero.com/documentation/api/accounting/contacts

Instance Method Summary collapse

Methods included from Resource

#==, #hash, included, #initialize, #inspect, #reference?, #to_h

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


62
# File 'lib/xero_kiwi/accounting/contact.rb', line 62

def active? = contact_status == "ACTIVE"

#archived?Boolean

Returns:

  • (Boolean)


64
# File 'lib/xero_kiwi/accounting/contact.rb', line 64

def archived? = contact_status == "ARCHIVED"

#customer?Boolean

Returns:

  • (Boolean)


60
# File 'lib/xero_kiwi/accounting/contact.rb', line 60

def customer? = is_customer == true

#supplier?Boolean

Returns:

  • (Boolean)


58
# File 'lib/xero_kiwi/accounting/contact.rb', line 58

def supplier? = is_supplier == true