Class: SDM::GroupUpdateResponse
- Inherits:
-
Object
- Object
- SDM::GroupUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
groupUpdateResponse returns the fields of a group after it has been updated by a groupUpdateRequest.
Instance Attribute Summary collapse
-
#group ⇒ Object
The updated group.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group: nil, rate_limit: nil) ⇒ GroupUpdateResponse
constructor
A new instance of GroupUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group: nil, rate_limit: nil) ⇒ GroupUpdateResponse
Returns a new instance of GroupUpdateResponse.
8620 8621 8622 8623 8624 8625 8626 |
# File 'lib/models/porcelain.rb', line 8620 def initialize( group: nil, rate_limit: nil ) @group = group == nil ? nil : group @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group ⇒ Object
The updated group.
8616 8617 8618 |
# File 'lib/models/porcelain.rb', line 8616 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8618 8619 8620 |
# File 'lib/models/porcelain.rb', line 8618 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8628 8629 8630 8631 8632 8633 8634 |
# File 'lib/models/porcelain.rb', line 8628 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 |