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.
5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 |
# File 'lib/models/porcelain.rb', line 5308 def initialize( meta: nil, role: nil, rate_limit: nil ) if != nil = 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.
5302 5303 5304 |
# File 'lib/models/porcelain.rb', line 5302 def end |
#rate_limit ⇒ Object
Rate limit information.
5306 5307 5308 |
# File 'lib/models/porcelain.rb', line 5306 def rate_limit @rate_limit end |
#role ⇒ Object
The created Role.
5304 5305 5306 |
# File 'lib/models/porcelain.rb', line 5304 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5324 5325 5326 5327 5328 5329 5330 |
# File 'lib/models/porcelain.rb', line 5324 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 |