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.
5038 5039 5040 5041 5042 5043 5044 5045 5046 |
# File 'lib/models/porcelain.rb', line 5038 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.
5032 5033 5034 |
# File 'lib/models/porcelain.rb', line 5032 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5034 5035 5036 |
# File 'lib/models/porcelain.rb', line 5034 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
5036 5037 5038 |
# File 'lib/models/porcelain.rb', line 5036 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5048 5049 5050 5051 5052 5053 5054 |
# File 'lib/models/porcelain.rb', line 5048 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 |