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, rate_limit: nil, role: nil) ⇒ RoleCreateResponse
constructor
A new instance of RoleCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role: nil) ⇒ RoleCreateResponse
Returns a new instance of RoleCreateResponse.
7093 7094 7095 7096 7097 7098 7099 7100 7101 |
# File 'lib/models/porcelain.rb', line 7093 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.
7087 7088 7089 |
# File 'lib/models/porcelain.rb', line 7087 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
7089 7090 7091 |
# File 'lib/models/porcelain.rb', line 7089 def rate_limit @rate_limit end |
#role ⇒ Object
The created Role.
7091 7092 7093 |
# File 'lib/models/porcelain.rb', line 7091 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7103 7104 7105 7106 7107 7108 7109 |
# File 'lib/models/porcelain.rb', line 7103 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 |