Class: SDM::RoleUpdateResponse
- Inherits:
-
Object
- Object
- SDM::RoleUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleUpdateResponse returns the fields of a Role after it has been updated by a RoleUpdateRequest.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role ⇒ Object
The updated Role.
Instance Method Summary collapse
-
#initialize(meta: nil, role: nil, rate_limit: nil) ⇒ RoleUpdateResponse
constructor
A new instance of RoleUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role: nil, rate_limit: nil) ⇒ RoleUpdateResponse
Returns a new instance of RoleUpdateResponse.
4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 |
# File 'lib/models/porcelain.rb', line 4339 def initialize( meta: nil, role: nil, rate_limit: nil ) if != nil @meta = end if role != nil @role = role end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4333 4334 4335 |
# File 'lib/models/porcelain.rb', line 4333 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4337 4338 4339 |
# File 'lib/models/porcelain.rb', line 4337 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
4335 4336 4337 |
# File 'lib/models/porcelain.rb', line 4335 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4355 4356 4357 4358 4359 4360 4361 |
# File 'lib/models/porcelain.rb', line 4355 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 |