Class: MasterCard::API::Qkr::ProdGroup
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::Qkr::ProdGroup
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/qkr/prodgroup.rb
Class Method Summary collapse
Class Method Details
.read(id, criteria = nil) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/mastercard/api/qkr/prodgroup.rb', line 64 def self.read(id, criteria = nil) # #Returns objects of type ProdGroup by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [ProdGroup] object representing the response #@raise [APIException] an exception from the response status mapObj = ProdGroup.new if !(id.nil? || id.to_s.empty?) mapObj.set("id", id) end if !criteria.nil? if criteria.instance_of? RequestMap mapObj.setAll(criteria.getObject()) else mapObj.setAll(criteria) end end return self.execute("8ffe543c-46bc-4491-ae87-ed43fb8a3afb",ProdGroup.new(mapObj)) end |