class MasterCard::API::MerchantRetailLocations::RetailUnitsMetrics

Public Class Methods

getApiVersion() click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitsmetrics.rb, line 76
def self.getApiVersion
    return "0.0.1"
end
query(criteria) click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitsmetrics.rb, line 88
def self.query(criteria)
    #
    #Query objects of type RetailUnitsMetrics by id and optional criteria
    #@param type criteria
    #@return RetailUnitsMetrics object representing the response.
    #

    obj = RetailUnitsMetrics.new(criteria)
    return self.queryObject(obj)
end

Public Instance Methods

getHeaderParams(action) click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitsmetrics.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/merchantretaillocations/retailunitsmetrics.rb, line 64
def getQueryParams(action)
    #Returns a list containing query params
    #@return list
    action = action.upcase
    
    if action == "QUERY"
        return ["PageOffset","PageLength","RetailUnitType","RetailUnitId","CompositeIndustry","Period"]
    end
    
    raise StandardError.new("Invalid action supplied: #{action.to_s}")
end
getResourcePath(action) click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitsmetrics.rb, line 38
def getResourcePath(action)
    #Returns the resource path based on the action
    #@return str

    action = action.upcase
    
    if action == "QUERY"
        return "/upfront/v1/upfront/retailunitmetrics"
        end
    
    raise StandardError.new("Invalid action supplied: #{action.to_s}")

end