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