Class: SDM::RoleGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantGetResponse returns a requested RoleGrant.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_grant ⇒ Object
The requested RoleGrant.
Instance Method Summary collapse
-
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantGetResponse
constructor
A new instance of RoleGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_grant: nil, rate_limit: nil) ⇒ RoleGrantGetResponse
Returns a new instance of RoleGrantGetResponse.
5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 |
# File 'lib/models/porcelain.rb', line 5137 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.
5131 5132 5133 |
# File 'lib/models/porcelain.rb', line 5131 def end |
#rate_limit ⇒ Object
Rate limit information.
5135 5136 5137 |
# File 'lib/models/porcelain.rb', line 5135 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The requested RoleGrant.
5133 5134 5135 |
# File 'lib/models/porcelain.rb', line 5133 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5153 5154 5155 5156 5157 5158 5159 |
# File 'lib/models/porcelain.rb', line 5153 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 |