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.
11298 11299 11300 11301 11302 11303 11304 11305 11306 |
# File 'lib/models/porcelain.rb', line 11298 def initialize( meta: nil, rate_limit: nil, role: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @role = role == nil ? nil : role end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
11292 11293 11294 |
# File 'lib/models/porcelain.rb', line 11292 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11294 11295 11296 |
# File 'lib/models/porcelain.rb', line 11294 def rate_limit @rate_limit end |
#role ⇒ Object
The updated Role.
11296 11297 11298 |
# File 'lib/models/porcelain.rb', line 11296 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11308 11309 11310 11311 11312 11313 11314 |
# File 'lib/models/porcelain.rb', line 11308 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 |