class EcwidApi::Api::Customers
Public Instance Methods
all(params = {})
click to toggle source
create(params)
click to toggle source
find(id)
click to toggle source
Public: Finds a single customer by customer ID
id - an Ecwid customer ID
Returns a Customer
object, or nil if one can't be found
# File lib/ecwid_api/api/customers.rb, line 20 def find(id) response = client.get("customers/#{id}") if response.success? Customer.new(response.body, client: client) end end
update(id, params)
click to toggle source