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.
8624 8625 8626 8627 8628 8629 8630 |
# File 'lib/models/porcelain.rb', line 8624 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.
8620 8621 8622 |
# File 'lib/models/porcelain.rb', line 8620 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8622 8623 8624 |
# File 'lib/models/porcelain.rb', line 8622 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8632 8633 8634 8635 8636 8637 8638 |
# File 'lib/models/porcelain.rb', line 8632 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 |