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.
7359 7360 7361 7362 7363 7364 7365 7366 7367 |
# File 'lib/models/porcelain.rb', line 7359 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.
7353 7354 7355 |
# File 'lib/models/porcelain.rb', line 7353 def group @group end |
#meta ⇒ Object
Reserved for future use.
7355 7356 7357 |
# File 'lib/models/porcelain.rb', line 7355 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
7357 7358 7359 |
# File 'lib/models/porcelain.rb', line 7357 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7369 7370 7371 7372 7373 7374 7375 |
# File 'lib/models/porcelain.rb', line 7369 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 |