class SageWorld::Api::CategoryList
Public Class Methods
get(params = {})
click to toggle source
Sorting results Category list can be sorted by Category Name or Category Number. By Default Category list is sorted by Name. response = SageWorld::Api::CategoryList.get
({ sort: “name”}) => sorts category list by name response = SageWorld::Api::CategoryList.get
({ sort: “catnum”}) => sorts category list by category number
# File lib/sage_world/api/category_list.rb, line 20 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/category_list.rb, line 30 def self.list_builder(params) { category_list: params } end