class MasterCard::API::SectorInsight::Parameters
Public Class Methods
getApiVersion()
click to toggle source
# File lib/mastercard/api/sectorinsight/parameters.rb, line 76 def self.getApiVersion return "0.0.1" end
query(criteria)
click to toggle source
# File lib/mastercard/api/sectorinsight/parameters.rb, line 88 def self.query(criteria) # #Query objects of type Parameters by id and optional criteria #@param type criteria #@return Parameters object representing the response. # obj = Parameters.new(criteria) return self.queryObject(obj) end
Public Instance Methods
getHeaderParams(action)
click to toggle source
# File lib/mastercard/api/sectorinsight/parameters.rb, line 52 def getHeaderParams(action) #Returns a list containing header params #@return list action = action.upcase if action == "QUERY" return [] end raise StandardError.new("Invalid action supplied: #{action.to_s}") end
getQueryParams(action)
click to toggle source
# File lib/mastercard/api/sectorinsight/parameters.rb, line 64 def getQueryParams(action) #Returns a list containing query params #@return list action = action.upcase if action == "QUERY" return ["CurrentRow","Offset"] end raise StandardError.new("Invalid action supplied: #{action.to_s}") end
getResourcePath(action)
click to toggle source
# File lib/mastercard/api/sectorinsight/parameters.rb, line 38 def getResourcePath(action) #Returns the resource path based on the action #@return str action = action.upcase if action == "QUERY" return "/sectorinsights/v1/sectins.svc/parameters" end raise StandardError.new("Invalid action supplied: #{action.to_s}") end