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.
5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 |
# File 'lib/models/porcelain.rb', line 5815 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.
5809 5810 5811 |
# File 'lib/models/porcelain.rb', line 5809 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5811 5812 5813 |
# File 'lib/models/porcelain.rb', line 5811 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
5813 5814 5815 |
# File 'lib/models/porcelain.rb', line 5813 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5831 5832 5833 5834 5835 5836 5837 |
# File 'lib/models/porcelain.rb', line 5831 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 |