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.
7205 7206 7207 7208 7209 |
# File 'lib/models/porcelain.rb', line 7205 def initialize( group: nil ) @group = group == nil ? nil : group end |
Instance Attribute Details
#group ⇒ Object
Parameters to define the new Group.
7203 7204 7205 |
# File 'lib/models/porcelain.rb', line 7203 def group @group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7211 7212 7213 7214 7215 7216 7217 |
# File 'lib/models/porcelain.rb', line 7211 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 |