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.
5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 |
# File 'lib/models/porcelain.rb', line 5103 def initialize( meta: nil, role_grant: nil, rate_limit: nil ) if != nil = 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.
5097 5098 5099 |
# File 'lib/models/porcelain.rb', line 5097 def end |
#rate_limit ⇒ Object
Rate limit information.
5101 5102 5103 |
# File 'lib/models/porcelain.rb', line 5101 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The created RoleGrant.
5099 5100 5101 |
# File 'lib/models/porcelain.rb', line 5099 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5119 5120 5121 5122 5123 5124 5125 |
# File 'lib/models/porcelain.rb', line 5119 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 |