Class: XeroKiwi::Accounting::Phone

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

Overview

A Xero phone number. Used by Organisation, Contact, and other resources.

See: developer.xero.com/documentation/api/accounting/types#phones

Instance Method Summary collapse

Methods included from Resource

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

Instance Method Details

#default?Boolean

Returns:

  • (Boolean)


16
# File 'lib/xero_kiwi/accounting/phone.rb', line 16

def default? = phone_type == "DEFAULT"

#fax?Boolean

Returns:

  • (Boolean)


18
# File 'lib/xero_kiwi/accounting/phone.rb', line 18

def fax?     = phone_type == "FAX"

#mobile?Boolean

Returns:

  • (Boolean)


17
# File 'lib/xero_kiwi/accounting/phone.rb', line 17

def mobile?  = phone_type == "MOBILE"