Class: SDM::AccountGrantCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountGrantCreateResponse reports how the AccountGrants were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, account_grant: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse

Returns a new instance of AccountGrantCreateResponse.



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/models/porcelain.rb', line 267

def initialize(
	meta:nil \
,
	account_grant:nil \
,
	rate_limit:nil \
)
	if meta != nil
		@meta = meta
	end
	if  != nil
		@account_grant = 
	end
	if rate_limit != nil
		@rate_limit = rate_limit
	end
end

Instance Attribute Details

#account_grantObject

The created AccountGrant.



264
265
266
# File 'lib/models/porcelain.rb', line 264

def 
  @account_grant
end

#metaObject

Reserved for future use.



262
263
264
# File 'lib/models/porcelain.rb', line 262

def meta
  @meta
end

#rate_limitObject

Rate limit information.



266
267
268
# File 'lib/models/porcelain.rb', line 266

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



284
285
286
287
288
289
290
# File 'lib/models/porcelain.rb', line 284

def to_json(options={})
	hash = {}
	self.instance_variables.each do |var|
	    hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var
	end
	hash.to_json
end