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.
4960 4961 4962 4963 4964 4965 4966 4967 4968 |
# File 'lib/models/porcelain.rb', line 4960 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.
4954 4955 4956 |
# File 'lib/models/porcelain.rb', line 4954 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4956 4957 4958 |
# File 'lib/models/porcelain.rb', line 4956 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
4958 4959 4960 |
# File 'lib/models/porcelain.rb', line 4958 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4970 4971 4972 4973 4974 4975 4976 |
# File 'lib/models/porcelain.rb', line 4970 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 |