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.
8458 8459 8460 8461 8462 |
# File 'lib/models/porcelain.rb', line 8458 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.
8456 8457 8458 |
# File 'lib/models/porcelain.rb', line 8456 def group_role @group_role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8464 8465 8466 8467 8468 8469 8470 |
# File 'lib/models/porcelain.rb', line 8464 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 |