Class: Kounta::Customer
- 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
#name ⇒ Object
26 27 28 |
# File 'lib/kounta/customer.rb', line 26 def name "#{first_name} #{last_name}" end |
#resource_path ⇒ Object
30 31 32 |
# File 'lib/kounta/customer.rb', line 30 def resource_path {companies: company_id, customers: id} end |