class Toptranslation::Resource::OrderList
Public Class Methods
new(connection, options = {})
click to toggle source
# File lib/toptranslation/resource/order_list.rb, line 5 def initialize(connection, options = {}) @connection = connection @options = options end
Public Instance Methods
create(options = {})
click to toggle source
# File lib/toptranslation/resource/order_list.rb, line 15 def create(options = {}) Order.new(@connection, options) end
each() { |order| ... }
click to toggle source
# File lib/toptranslation/resource/order_list.rb, line 19 def each orders.each { |order| yield Order.new(@connection, order) } end
find(identifier)
click to toggle source
# File lib/toptranslation/resource/order_list.rb, line 10 def find(identifier) result = @connection.get("/orders/#{identifier}", version: 2) Order.new(@connection, result) end
Private Instance Methods
orders()
click to toggle source
# File lib/toptranslation/resource/order_list.rb, line 25 def orders @connection.get('/orders', version: 2) end