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.
8975 8976 8977 8978 8979 8980 8981 |
# File 'lib/models/porcelain.rb', line 8975 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.
8971 8972 8973 |
# File 'lib/models/porcelain.rb', line 8971 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8973 8974 8975 |
# File 'lib/models/porcelain.rb', line 8973 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8983 8984 8985 8986 8987 8988 8989 |
# File 'lib/models/porcelain.rb', line 8983 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 |