Class: SDM::RoleGrantCreateResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantCreateResponse reports how the RoleGrants were created in the system.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_grant ⇒ Object
The created RoleGrant.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantCreateResponse
constructor
A new instance of RoleGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantCreateResponse
Returns a new instance of RoleGrantCreateResponse.
5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 |
# File 'lib/models/porcelain.rb', line 5718 def initialize( meta: nil, rate_limit: nil, role_grant: nil ) if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end if role_grant != nil @role_grant = role_grant end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
5712 5713 5714 |
# File 'lib/models/porcelain.rb', line 5712 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5714 5715 5716 |
# File 'lib/models/porcelain.rb', line 5714 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
5716 5717 5718 |
# File 'lib/models/porcelain.rb', line 5716 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5734 5735 5736 5737 5738 5739 5740 |
# File 'lib/models/porcelain.rb', line 5734 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 |