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.
7810 7811 7812 7813 7814 7815 7816 |
# File 'lib/models/porcelain.rb', line 7810 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.
7806 7807 7808 |
# File 'lib/models/porcelain.rb', line 7806 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
7808 7809 7810 |
# File 'lib/models/porcelain.rb', line 7808 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7818 7819 7820 7821 7822 7823 7824 |
# File 'lib/models/porcelain.rb', line 7818 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 |