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, rate_limit: nil, role: nil) ⇒ RoleUpdateResponse
constructor
A new instance of RoleUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role: nil) ⇒ RoleUpdateResponse
Returns a new instance of RoleUpdateResponse.
6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 |
# File 'lib/models/porcelain.rb', line 6537 def initialize( meta: nil, rate_limit: nil, role: nil ) if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end if role != nil @role = role end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
6531 6532 6533 |
# File 'lib/models/porcelain.rb', line 6531 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6533 6534 6535 |
# File 'lib/models/porcelain.rb', line 6533 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
6535 6536 6537 |
# File 'lib/models/porcelain.rb', line 6535 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6553 6554 6555 6556 6557 6558 6559 |
# File 'lib/models/porcelain.rb', line 6553 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 |