Module: FidorApi::Customer::ClientSupport
- Included in:
- FidorApi::Client
- Defined in:
- lib/fidor_api/customer.rb
Instance Method Summary collapse
- #confirm_customer_update(id, attributes) ⇒ Object
- #customers(options = {}) ⇒ Object
- #first_customer ⇒ Object
- #request_customer_update(id, attributes) ⇒ Object
- #update_customer(id, attributes) ⇒ Object
Instance Method Details
#confirm_customer_update(id, attributes) ⇒ Object
135 136 137 |
# File 'lib/fidor_api/customer.rb', line 135 def confirm_customer_update(id, attributes) Customer.new(id: id).confirm_update(attributes) end |
#customers(options = {}) ⇒ Object
119 120 121 |
# File 'lib/fidor_api/customer.rb', line 119 def customers( = {}) Customer.all() end |
#first_customer ⇒ Object
123 124 125 |
# File 'lib/fidor_api/customer.rb', line 123 def first_customer Customer.first end |
#request_customer_update(id, attributes) ⇒ Object
131 132 133 |
# File 'lib/fidor_api/customer.rb', line 131 def request_customer_update(id, attributes) Customer.new(id: id).request_update(attributes) end |
#update_customer(id, attributes) ⇒ Object
127 128 129 |
# File 'lib/fidor_api/customer.rb', line 127 def update_customer(id, attributes) Customer.endpoint.for(id).put(payload: attributes) end |