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.
4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 |
# File 'lib/models/porcelain.rb', line 4844 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.
4838 4839 4840 |
# File 'lib/models/porcelain.rb', line 4838 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4842 4843 4844 |
# File 'lib/models/porcelain.rb', line 4842 def rate_limit @rate_limit end |
#role ⇒ Object
The created Role.
4840 4841 4842 |
# File 'lib/models/porcelain.rb', line 4840 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4860 4861 4862 4863 4864 4865 4866 |
# File 'lib/models/porcelain.rb', line 4860 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 |