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, rate_limit: nil, role_grant: nil) ⇒ RoleGrantCreateResponse
constructor
A new instance of RoleGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantCreateResponse
Returns a new instance of RoleGrantCreateResponse.
6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 |
# File 'lib/models/porcelain.rb', line 6484 def initialize( meta: nil, rate_limit: nil, role_grant: nil ) if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end if role_grant != nil @role_grant = role_grant end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
6478 6479 6480 |
# File 'lib/models/porcelain.rb', line 6478 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6480 6481 6482 |
# File 'lib/models/porcelain.rb', line 6480 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
6482 6483 6484 |
# File 'lib/models/porcelain.rb', line 6482 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6500 6501 6502 6503 6504 6505 6506 |
# File 'lib/models/porcelain.rb', line 6500 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 |