Class: SDM::RoleGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGetResponse returns a requested Role.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role ⇒ Object
The requested Role.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, role: nil) ⇒ RoleGetResponse
constructor
A new instance of RoleGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role: nil) ⇒ RoleGetResponse
Returns a new instance of RoleGetResponse.
11170 11171 11172 11173 11174 11175 11176 11177 11178 |
# File 'lib/models/porcelain.rb', line 11170 def initialize( meta: nil, rate_limit: nil, role: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @role = role == nil ? nil : role end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
11164 11165 11166 |
# File 'lib/models/porcelain.rb', line 11164 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11166 11167 11168 |
# File 'lib/models/porcelain.rb', line 11166 def rate_limit @rate_limit end |
#role ⇒ Object
The requested Role.
11168 11169 11170 |
# File 'lib/models/porcelain.rb', line 11168 def role @role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11180 11181 11182 11183 11184 11185 11186 |
# File 'lib/models/porcelain.rb', line 11180 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 |