class Levelup::Requests::ListUserOrders

Represents a request to create an address for a specific user. For information about its parameters, see UserAddressData and UserAuthenticated. User access token must have the read_user_orders permission.

Public Instance Methods

body() click to toggle source
# File lib/levelup/requests/list_user_orders.rb, line 9
def body
  {}
end
response_from_hash(hash) click to toggle source
# File lib/levelup/requests/list_user_orders.rb, line 13
def response_from_hash(hash)
  orders = hash.map { |order| OpenStruct.new(order['order']) }
  Responses::Success.new(orders: orders)
end