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.
6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 |
# File 'lib/models/porcelain.rb', line 6571 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.
6565 6566 6567 |
# File 'lib/models/porcelain.rb', line 6565 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6569 6570 6571 |
# File 'lib/models/porcelain.rb', line 6569 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
6567 6568 6569 |
# File 'lib/models/porcelain.rb', line 6567 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6587 6588 6589 6590 6591 6592 6593 |
# File 'lib/models/porcelain.rb', line 6587 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 |