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.
7160 7161 7162 7163 7164 7165 7166 |
# File 'lib/models/porcelain.rb', line 7160 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
7156 7157 7158 |
# File 'lib/models/porcelain.rb', line 7156 def commit @commit end |
#role_ids ⇒ Object
The unique identifiers of the roles create groups from.
7158 7159 7160 |
# File 'lib/models/porcelain.rb', line 7158 def role_ids @role_ids end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7168 7169 7170 7171 7172 7173 7174 |
# File 'lib/models/porcelain.rb', line 7168 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 |