Class: SDM::RoleCreateResponse
- Inherits:
-
Object
- Object
- SDM::RoleCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleCreateResponse reports how the Roles were created in the system. It can communicate partial successes or failures.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role ⇒ Object
The created Role.
Instance Method Summary collapse
-
#initialize(meta: nil, role: nil, rate_limit: nil) ⇒ RoleCreateResponse
constructor
A new instance of RoleCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role: nil, rate_limit: nil) ⇒ RoleCreateResponse
Returns a new instance of RoleCreateResponse.
4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 |
# File 'lib/models/porcelain.rb', line 4276 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.
4270 4271 4272 |
# File 'lib/models/porcelain.rb', line 4270 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4274 4275 4276 |
# File 'lib/models/porcelain.rb', line 4274 def rate_limit @rate_limit end |
#role ⇒ Object
The created Role.
4272 4273 4274 |
# File 'lib/models/porcelain.rb', line 4272 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4292 4293 4294 4295 4296 4297 4298 |
# File 'lib/models/porcelain.rb', line 4292 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 |