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.
8601 8602 8603 8604 8605 |
# File 'lib/models/porcelain.rb', line 8601 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to overwrite the specified group.
8599 8600 8601 |
# File 'lib/models/porcelain.rb', line 8599 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8607 8608 8609 8610 8611 8612 8613 |
# File 'lib/models/porcelain.rb', line 8607 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 |