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.
6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 |
# File 'lib/models/porcelain.rb', line 6640 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.
6634 6635 6636 |
# File 'lib/models/porcelain.rb', line 6634 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6638 6639 6640 |
# File 'lib/models/porcelain.rb', line 6638 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
6636 6637 6638 |
# File 'lib/models/porcelain.rb', line 6636 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6656 6657 6658 6659 6660 6661 6662 |
# File 'lib/models/porcelain.rb', line 6656 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 |