Class: SDM::GroupUpdateRequest
- Inherits:
-
Object
- Object
- SDM::GroupUpdateRequest
- Defined in:
- lib/models/porcelain.rb
Overview
GroupUpdateRequest updates a group.
Instance Attribute Summary collapse
-
#group ⇒ Object
Parameters to overwrite the specified group.
Instance Method Summary collapse
-
#initialize(group: nil) ⇒ GroupUpdateRequest
constructor
A new instance of GroupUpdateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group: nil) ⇒ GroupUpdateRequest
Returns a new instance of GroupUpdateRequest.
7696 7697 7698 7699 7700 |
# File 'lib/models/porcelain.rb', line 7696 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to overwrite the specified group.
7694 7695 7696 |
# File 'lib/models/porcelain.rb', line 7694 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7702 7703 7704 7705 7706 7707 7708 |
# File 'lib/models/porcelain.rb', line 7702 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 |