Class: Veeqo::Customer
- Includes:
- Actions::Base
- Defined in:
- lib/veeqo/customer.rb
Instance Method Summary collapse
Methods included from Actions::Delete
Methods included from Actions::Find
Methods included from Actions::List
Methods inherited from Base
Instance Method Details
#create(email:, **attributes) ⇒ Object
5 6 7 8 |
# File 'lib/veeqo/customer.rb', line 5 def create(email:, **attributes) required_attributes = { email: email } create_resource(customer: required_attributes.merge(attributes)) end |
#update(customer_id, email:, **attributes) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/veeqo/customer.rb', line 10 def update(customer_id, email:, **attributes) required_attributes = { email: email } update_resource( customer_id, customer: required_attributes.merge(attributes) ) end |