Class: SDM::GroupRoleCreateRequest
- Inherits:
-
Object
- Object
- SDM::GroupRoleCreateRequest
- Defined in:
- lib/models/porcelain.rb
Overview
GroupRoleCreateRequest specifies a group role to create.
Instance Attribute Summary collapse
-
#group_role ⇒ Object
Parameters to define the new GroupRole.
Instance Method Summary collapse
-
#initialize(group_role: nil) ⇒ GroupRoleCreateRequest
constructor
A new instance of GroupRoleCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group_role: nil) ⇒ GroupRoleCreateRequest
Returns a new instance of GroupRoleCreateRequest.
7480 7481 7482 7483 7484 |
# File 'lib/models/porcelain.rb', line 7480 def initialize( group_role: nil ) @group_role = group_role == nil ? nil : group_role end |
Instance Attribute Details
#group_role ⇒ Object
Parameters to define the new GroupRole.
7478 7479 7480 |
# File 'lib/models/porcelain.rb', line 7478 def group_role @group_role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7486 7487 7488 7489 7490 7491 7492 |
# File 'lib/models/porcelain.rb', line 7486 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 |