Class: LedgerSync::Ledgers::NetSuiteSOAP::Customer

Inherits:
Resource show all
Defined in:
lib/ledger_sync/ledgers/netsuite_soap/resources/customer.rb,
lib/ledger_sync/ledgers/netsuite_soap/customer/operations/find.rb,
lib/ledger_sync/ledgers/netsuite_soap/customer/operations/create.rb

Defined Under Namespace

Modules: Operations

Constant Summary

Constants inherited from Resource

Resource::PRIMITIVES

Instance Method Summary collapse

Methods inherited from Resource

#==, #assign_attribute, #assign_attributes, #changed?, #changes, #class_from_resource_type, inherited, operations, resource_module_str, resource_type, serialize_attribute?, #to_h

Methods included from Mixins::InferClientMixin

included

Methods included from Util::Mixins::DupableMixin

#dup

Methods included from ResourceAttribute::Reference::Many::Mixin

included

Methods included from ResourceAttribute::Reference::One::Mixin

included

Methods included from ResourceAttribute::Mixin

#assign_attribute, #assign_attributes, included, #initialize, #resource_attributes, #save, #serialize_attributes

Methods included from Validatable

#valid?, #validate, #validate_or_fail

Instance Method Details

#first_nameObject



15
16
17
18
19
# File 'lib/ledger_sync/ledgers/netsuite_soap/resources/customer.rb', line 15

def first_name
  return if name.nil?

  name.split(' ').first
end

#last_nameObject



21
22
23
24
25
# File 'lib/ledger_sync/ledgers/netsuite_soap/resources/customer.rb', line 21

def last_name
  return if name.nil?

  name.split(' ')[1..-1]
end