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.
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 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.
5554 5555 5556 5557 5558 5559 5560 5561 5562 |
# File 'lib/models/porcelain.rb', line 5554 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.
5548 5549 5550 |
# File 'lib/models/porcelain.rb', line 5548 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5550 5551 5552 |
# File 'lib/models/porcelain.rb', line 5550 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
5552 5553 5554 |
# File 'lib/models/porcelain.rb', line 5552 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5564 5565 5566 5567 5568 5569 5570 |
# File 'lib/models/porcelain.rb', line 5564 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 |