Class: SDM::RoleGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantGetResponse returns a requested RoleGrant.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_grant ⇒ Object
The requested RoleGrant.
Instance Method Summary collapse
-
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantGetResponse
constructor
A new instance of RoleGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantGetResponse
Returns a new instance of RoleGrantGetResponse.
6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 |
# File 'lib/models/porcelain.rb', line 6474 def initialize( meta: nil, role_grant: nil, rate_limit: nil ) if != nil = 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.
6468 6469 6470 |
# File 'lib/models/porcelain.rb', line 6468 def end |
#rate_limit ⇒ Object
Rate limit information.
6472 6473 6474 |
# File 'lib/models/porcelain.rb', line 6472 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The requested RoleGrant.
6470 6471 6472 |
# File 'lib/models/porcelain.rb', line 6470 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6490 6491 6492 6493 6494 6495 6496 |
# File 'lib/models/porcelain.rb', line 6490 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 |