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.
8674 8675 8676 8677 8678 |
# File 'lib/models/porcelain.rb', line 8674 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to overwrite the specified group.
8672 8673 8674 |
# File 'lib/models/porcelain.rb', line 8672 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8680 8681 8682 8683 8684 8685 8686 |
# File 'lib/models/porcelain.rb', line 8680 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 |