class MasterCard::API::Vending::Machine

Public Class Methods

listByCriteria(criteria = nil) click to toggle source
# File lib/mastercard/api/vending/machine.rb, line 60
def self.listByCriteria(criteria = nil)
    #
    #List objects of type Machine
    #
    #@param Dict criteria
    #@return Array of Machine object matching the criteria.

    if criteria.nil?
        return self.execute("bd154914-a734-44a3-9791-65f0633a4af7",Machine.new)
    else
        return self.execute("bd154914-a734-44a3-9791-65f0633a4af7",Machine.new(criteria))
    end
end

Protected Class Methods

getOperationConfig(uuid) click to toggle source
# File lib/mastercard/api/vending/machine.rb, line 45
def self.getOperationConfig(uuid)
    if @__store.key?(uuid)
        return @__store[uuid]
    end
    raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
end
getOperationMetadata() click to toggle source
# File lib/mastercard/api/vending/machine.rb, line 52
def self.getOperationMetadata()
    return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
end