Class: MasterCard::API::Qkr::Form
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::Qkr::Form
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/qkr/form.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/form.rb', line 64 def self.read(id, criteria = nil) # #Returns objects of type Form by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Form] object representing the response #@raise [APIException] an exception from the response status mapObj = Form.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("a3a1fbf8-37dd-4dcd-b0dc-ecc5de2006a8",Form.new(mapObj)) end |