Sha256: 679ef61239888ad41cc4bbe8cc9cea3cb97333d2cba86551baea643748763029
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 Bytes
Contents
module Moip2 class OrderApi attr_reader :client def initialize(client) @client = client end def base_path "/v2/orders" end def create(order) Resource::Order.new client, client.post(base_path, order) end def show(id) Resource::Order.new client, client.get("#{base_path}/#{id}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moip2-0.1.4 | lib/moip2/order_api.rb |
moip2-0.1.3 | lib/moip2/order_api.rb |
moip2-0.1.1 | lib/moip2/order_api.rb |
moip2-0.1.0 | lib/moip2/order_api.rb |