Class: Quickbooks::Model::Customer

Inherits:
BaseModel
  • Object
show all
Includes:
NameEntity::PermitAlterations, NameEntity::Quality
Defined in:
lib/quickbooks/model/customer.rb

Constant Summary collapse

XML_COLLECTION_NODE =
"Customer"
XML_NODE =
"Customer"
REST_RESOURCE =
'customer'

Instance Method Summary collapse

Methods included from NameEntity::PermitAlterations

#valid_for_create?, #valid_for_deletion?, #valid_for_update?

Methods included from NameEntity::Quality

#email_address, #email_address=, #email_address_is_valid, #names_cannot_contain_invalid_characters

Methods inherited from BaseModel

attribute_names, #attributes, #initialize, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns

Constructor Details

This class inherits a constructor from Quickbooks::Model::BaseModel

Instance Method Details

#bill_with_parent?Boolean



65
66
67
# File 'lib/quickbooks/model/customer.rb', line 65

def bill_with_parent?
  bill_with_parent.to_s == 'true'
end

#job?Boolean



61
62
63
# File 'lib/quickbooks/model/customer.rb', line 61

def job?
  job.to_s == 'true'
end

#taxable?Boolean



69
70
71
# File 'lib/quickbooks/model/customer.rb', line 69

def taxable?
  taxable.to_s == 'true'
end