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.
8837 8838 8839 8840 8841 8842 8843 |
# File 'lib/models/porcelain.rb', line 8837 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.
8833 8834 8835 |
# File 'lib/models/porcelain.rb', line 8833 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8835 8836 8837 |
# File 'lib/models/porcelain.rb', line 8835 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8845 8846 8847 8848 8849 8850 8851 |
# File 'lib/models/porcelain.rb', line 8845 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 |