class Levelup::Endpoints::Orders

The class holding all functions related to orders that do not specify a specific order. For single-order functions, see SpecificOrder.

Public Instance Methods

create(order_request) click to toggle source

Creates an order. See Requests::CreateOrder for more info about the parameters.

# File lib/levelup/endpoints/orders.rb, line 7
def create(order_request)
  build_request(order_request, Requests::CreateOrder).
    send_to_api(:post, endpoint_path)
end

Private Instance Methods

path() click to toggle source
# File lib/levelup/endpoints/orders.rb, line 14
def path
  'orders'
end