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.
5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 |
# File 'lib/models/porcelain.rb', line 5411 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.
5405 5406 5407 |
# File 'lib/models/porcelain.rb', line 5405 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5409 5410 5411 |
# File 'lib/models/porcelain.rb', line 5409 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
5407 5408 5409 |
# File 'lib/models/porcelain.rb', line 5407 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5427 5428 5429 5430 5431 5432 5433 |
# File 'lib/models/porcelain.rb', line 5427 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 |