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.
5094 5095 5096 5097 5098 5099 5100 5101 5102 |
# File 'lib/models/porcelain.rb', line 5094 def initialize( meta: nil, rate_limit: nil, role_grant: nil ) = == 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.
5088 5089 5090 |
# File 'lib/models/porcelain.rb', line 5088 def end |
#rate_limit ⇒ Object
Rate limit information.
5090 5091 5092 |
# File 'lib/models/porcelain.rb', line 5090 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The requested RoleGrant.
5092 5093 5094 |
# File 'lib/models/porcelain.rb', line 5092 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5104 5105 5106 5107 5108 5109 5110 |
# File 'lib/models/porcelain.rb', line 5104 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 |