Class: SDM::GroupCreateFromRolesRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit: nil, role_ids: nil) ⇒ GroupCreateFromRolesRequest



7251
7252
7253
7254
7255
7256
7257
# File 'lib/models/porcelain.rb', line 7251

def initialize(
  commit: nil,
  role_ids: nil
)
  @commit = commit == nil ? false : commit
  @role_ids = role_ids == nil ? [] : role_ids
end

Instance Attribute Details

#commitObject

Commit



7247
7248
7249
# File 'lib/models/porcelain.rb', line 7247

def commit
  @commit
end

#role_idsObject

The unique identifiers of the roles create groups from.



7249
7250
7251
# File 'lib/models/porcelain.rb', line 7249

def role_ids
  @role_ids
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7259
7260
7261
7262
7263
7264
7265
# File 'lib/models/porcelain.rb', line 7259

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end