Class: SDM::GroupGetResponse
- Inherits:
-
Object
- Object
- SDM::GroupGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
GroupGetResponse returns a requested Group.
Instance Attribute Summary collapse
-
#group ⇒ Object
The requested Group.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group: nil, meta: nil, rate_limit: nil) ⇒ GroupGetResponse
constructor
A new instance of GroupGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group: nil, meta: nil, rate_limit: nil) ⇒ GroupGetResponse
Returns a new instance of GroupGetResponse.
7352 7353 7354 7355 7356 7357 7358 7359 7360 |
# File 'lib/models/porcelain.rb', line 7352 def initialize( group: nil, meta: nil, rate_limit: nil ) @group = group == nil ? nil : group @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group ⇒ Object
The requested Group.
7346 7347 7348 |
# File 'lib/models/porcelain.rb', line 7346 def group @group end |
#meta ⇒ Object
Reserved for future use.
7348 7349 7350 |
# File 'lib/models/porcelain.rb', line 7348 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
7350 7351 7352 |
# File 'lib/models/porcelain.rb', line 7350 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7362 7363 7364 7365 7366 7367 7368 |
# File 'lib/models/porcelain.rb', line 7362 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 |