class SpiffyStoresAPI::Customer

Public Class Methods

Public Instance Methods

account_activation_url() click to toggle source
# File lib/spiffy_stores_api/resources/customer.rb, line 13
def account_activation_url
  resource = post(:account_activation_url, {}, only_id)
  data = ActiveSupport::JSON.decode(resource.body.to_s)
  result = nil

  if data.key?('account_activation_url')
    result = data['account_activation_url']
  end
  result
end
orders() click to toggle source
# File lib/spiffy_stores_api/resources/customer.rb, line 5
def orders
  Order.find(:all, params: {customer_id: self.id})
end