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.
6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 |
# File 'lib/models/porcelain.rb', line 6440 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.
6434 6435 6436 |
# File 'lib/models/porcelain.rb', line 6434 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6438 6439 6440 |
# File 'lib/models/porcelain.rb', line 6438 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
6436 6437 6438 |
# File 'lib/models/porcelain.rb', line 6436 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6456 6457 6458 6459 6460 6461 6462 |
# File 'lib/models/porcelain.rb', line 6456 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 |