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.
8863 8864 8865 8866 8867 8868 8869 |
# File 'lib/models/porcelain.rb', line 8863 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.
8859 8860 8861 |
# File 'lib/models/porcelain.rb', line 8859 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8861 8862 8863 |
# File 'lib/models/porcelain.rb', line 8861 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8871 8872 8873 8874 8875 8876 8877 |
# File 'lib/models/porcelain.rb', line 8871 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 |