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.
4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 |
# File 'lib/models/porcelain.rb', line 4270 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.
4264 4265 4266 |
# File 'lib/models/porcelain.rb', line 4264 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4268 4269 4270 |
# File 'lib/models/porcelain.rb', line 4268 def rate_limit @rate_limit end |
#role ⇒ Object
The created Role.
4266 4267 4268 |
# File 'lib/models/porcelain.rb', line 4266 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4286 4287 4288 4289 4290 4291 4292 |
# File 'lib/models/porcelain.rb', line 4286 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 |