Class: SDM::RoleGrantCreateResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantCreateResponse reports how the RoleGrants were created in the system.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_grant ⇒ Object
The created RoleGrant.
Instance Method Summary collapse
-
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
constructor
A new instance of RoleGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
Returns a new instance of RoleGrantCreateResponse.
6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 |
# File 'lib/models/porcelain.rb', line 6371 def initialize( meta: nil, role_grant: nil, rate_limit: nil ) if != nil @meta = end if role_grant != nil @role_grant = role_grant end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
6365 6366 6367 |
# File 'lib/models/porcelain.rb', line 6365 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6369 6370 6371 |
# File 'lib/models/porcelain.rb', line 6369 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
6367 6368 6369 |
# File 'lib/models/porcelain.rb', line 6367 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6387 6388 6389 6390 6391 6392 6393 |
# File 'lib/models/porcelain.rb', line 6387 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |