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.
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, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
constructor
A new instance of RoleGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
Returns a new instance of RoleGrantCreateResponse.
4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 |
# File 'lib/models/porcelain.rb', line 4144 def initialize( meta: nil, role_grant: nil, rate_limit: nil ) if != nil @meta = end if role_grant != nil @role_grant = role_grant end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4138 4139 4140 |
# File 'lib/models/porcelain.rb', line 4138 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4142 4143 4144 |
# File 'lib/models/porcelain.rb', line 4142 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
4140 4141 4142 |
# File 'lib/models/porcelain.rb', line 4140 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4160 4161 4162 4163 4164 4165 4166 |
# File 'lib/models/porcelain.rb', line 4160 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 |