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.
7787 7788 7789 7790 7791 |
# File 'lib/models/porcelain.rb', line 7787 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to overwrite the specified group.
7785 7786 7787 |
# File 'lib/models/porcelain.rb', line 7785 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7793 7794 7795 7796 7797 7798 7799 |
# File 'lib/models/porcelain.rb', line 7793 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 |