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.
4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 |
# File 'lib/models/porcelain.rb', line 4138 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.
4132 4133 4134 |
# File 'lib/models/porcelain.rb', line 4132 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4136 4137 4138 |
# File 'lib/models/porcelain.rb', line 4136 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
4134 4135 4136 |
# File 'lib/models/porcelain.rb', line 4134 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4154 4155 4156 4157 4158 4159 4160 |
# File 'lib/models/porcelain.rb', line 4154 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 |