Class: SDM::RoleGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantGetResponse returns a requested RoleGrant.
Deprecated: use Role access rules instead.
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, rate_limit: nil, role_grant: nil) ⇒ RoleGrantGetResponse
constructor
A new instance of RoleGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantGetResponse
Returns a new instance of RoleGrantGetResponse.
5368 5369 5370 5371 5372 5373 5374 5375 5376 |
# File 'lib/models/porcelain.rb', line 5368 def initialize( meta: nil, rate_limit: nil, role_grant: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @role_grant = role_grant == nil ? nil : role_grant end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
5362 5363 5364 |
# File 'lib/models/porcelain.rb', line 5362 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5364 5365 5366 |
# File 'lib/models/porcelain.rb', line 5364 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The requested RoleGrant.
5366 5367 5368 |
# File 'lib/models/porcelain.rb', line 5366 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5378 5379 5380 5381 5382 5383 5384 |
# File 'lib/models/porcelain.rb', line 5378 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 |