Class: SDM::GroupCreateFromRolesRequest
- Inherits:
-
Object
- Object
- SDM::GroupCreateFromRolesRequest
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
Commit.
-
#role_ids ⇒ Object
The unique identifiers of the roles create groups from.
Instance Method Summary collapse
-
#initialize(commit: nil, role_ids: nil) ⇒ GroupCreateFromRolesRequest
constructor
A new instance of GroupCreateFromRolesRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(commit: nil, role_ids: nil) ⇒ GroupCreateFromRolesRequest
Returns a new instance of GroupCreateFromRolesRequest.
7644 7645 7646 7647 7648 7649 7650 |
# File 'lib/models/porcelain.rb', line 7644 def initialize( commit: nil, role_ids: nil ) @commit = commit == nil ? false : commit @role_ids = role_ids == nil ? [] : role_ids end |
Instance Attribute Details
#commit ⇒ Object
Commit
7640 7641 7642 |
# File 'lib/models/porcelain.rb', line 7640 def commit @commit end |
#role_ids ⇒ Object
The unique identifiers of the roles create groups from.
7642 7643 7644 |
# File 'lib/models/porcelain.rb', line 7642 def role_ids @role_ids end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7652 7653 7654 7655 7656 7657 7658 |
# File 'lib/models/porcelain.rb', line 7652 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 |