Class: MasterCard::API::Blockchain::App

Inherits:
Core::Model::BaseObject
  • Object
show all
Includes:
Core::Model
Defined in:
lib/mastercard/api/blockchain/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.read(id, criteria = nil) ⇒ Object



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/mastercard/api/blockchain/app.rb', line 65

def self.read(id, criteria = nil)
	#
	#Returns objects of type App by id and optional criteria
	#@param [String] id
	#@param [Dict] criteria
	#@return [App] object representing the response
	#@raise [APIException] an exception from the response status

	mapObj = App.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("9d34a46e-5864-4961-8c3f-a8c0c0cf2f83",App.new(mapObj))
end

Instance Method Details

#updateObject



91
92
93
94
95
96
97
98
99
# File 'lib/mastercard/api/blockchain/app.rb', line 91

def update
	#
	#Updates an object of type App
	#
	#@return [App] object representing the response.
	#@raise [APIException] an exception from the response status
	#
	return self.class.execute("365c3bdc-43f8-46e4-8de9-773b4aaadb94",self)
end