class SageWorld::Api::SupplierList

Public Class Methods

get(params = {}) click to toggle source

AllLines => if set to 1 will return AllLines with every supplier e.g response = SageWorld::Api::SupplierList.get({ alllines: 1 })

# File lib/sage_world/api/supplier_list.rb, line 23
def self.get(params = {})
  if @existing_params == params
    @response
  else
    @existing_params = params
    response = SageWorld::Client.new(list_builder(params)).send_request
    @response = SageWorld::ResponseHandler.new(response)
  end
end

Private Class Methods

list_builder(params) click to toggle source
# File lib/sage_world/api/supplier_list.rb, line 33
                     def self.list_builder(params)
  {
    supplier_list: params
  }
end