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.
8598 8599 8600 8601 8602 |
# File 'lib/models/porcelain.rb', line 8598 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.
8596 8597 8598 |
# File 'lib/models/porcelain.rb', line 8596 def group_role @group_role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8604 8605 8606 8607 8608 8609 8610 |
# File 'lib/models/porcelain.rb', line 8604 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 |