Class: Levelup::Endpoints::Orders

Inherits:
Base
  • Object
show all
Defined in:
lib/levelup/endpoints/orders.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#create(order_request) ⇒ Object

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



7
8
9
10
# 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