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.
5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 |
# File 'lib/models/porcelain.rb', line 5177 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.
5171 5172 5173 |
# File 'lib/models/porcelain.rb', line 5171 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5175 5176 5177 |
# File 'lib/models/porcelain.rb', line 5175 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
5173 5174 5175 |
# File 'lib/models/porcelain.rb', line 5173 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5193 5194 5195 5196 5197 5198 5199 |
# File 'lib/models/porcelain.rb', line 5193 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 |