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, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
constructor
A new instance of RoleGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantCreateResponse
Returns a new instance of RoleGrantCreateResponse.
4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 |
# File 'lib/models/porcelain.rb', line 4712 def initialize( meta: nil, role_grant: nil, rate_limit: nil ) if != nil @meta = end if role_grant != nil @role_grant = role_grant end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4706 4707 4708 |
# File 'lib/models/porcelain.rb', line 4706 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4710 4711 4712 |
# File 'lib/models/porcelain.rb', line 4710 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
4708 4709 4710 |
# File 'lib/models/porcelain.rb', line 4708 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4728 4729 4730 4731 4732 4733 4734 |
# File 'lib/models/porcelain.rb', line 4728 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 |