Class: Kounta::Customer

Inherits:
Resource
  • Object
show all
Defined in:
lib/kounta/customer.rb

Instance Method Summary collapse

Methods inherited from Resource

#client, coerce, has_many, has_one, #ignored_properties, #initialize, #new?, #save!, #to_hash

Constructor Details

This class inherits a constructor from Kounta::Resource

Instance Method Details

#nameObject



25
26
27
# File 'lib/kounta/customer.rb', line 25

def name
  "#{first_name} #{last_name}"
end

#resource_pathObject



29
30
31
# File 'lib/kounta/customer.rb', line 29

def resource_path
  {companies: company_id, customers: id}
end