Class: SDM::GroupCreateRequest
- Inherits:
-
Object
- Object
- SDM::GroupCreateRequest
- Defined in:
- lib/models/porcelain.rb
Overview
GroupCreateRequest specifies a group to create.
Instance Attribute Summary collapse
-
#group ⇒ Object
Parameters to define the new Group.
Instance Method Summary collapse
-
#initialize(group: nil) ⇒ GroupCreateRequest
constructor
A new instance of GroupCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group: nil) ⇒ GroupCreateRequest
Returns a new instance of GroupCreateRequest.
7820 7821 7822 7823 7824 |
# File 'lib/models/porcelain.rb', line 7820 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to define the new Group.
7818 7819 7820 |
# File 'lib/models/porcelain.rb', line 7818 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7826 7827 7828 7829 7830 7831 7832 |
# File 'lib/models/porcelain.rb', line 7826 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 |