class Cloverrb::LineItem

Public Class Methods

new(token, order, merchant) click to toggle source
# File lib/cloverrb/line_item.rb, line 3
def initialize(token, order, merchant)
  @token = token
  @order = order
  @merchant = merchant
end

Public Instance Methods

all() click to toggle source
# File lib/cloverrb/line_item.rb, line 9
def all
  url = "/merchants/#{@merchant}/orders/#{@order}/line_items"
  get(@token, url)
end