Class: Etna::Clients::Janus::AddUserRequest

Inherits:
Struct
  • Object
show all
Includes:
JsonSerializableStruct
Defined in:
lib/etna/clients/janus/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JsonSerializableStruct

#as_json, included, #to_json

Constructor Details

#initialize(**params) ⇒ AddUserRequest

Returns a new instance of AddUserRequest.



29
30
31
# File 'lib/etna/clients/janus/models.rb', line 29

def initialize(**params)
  super({privileged: false, affiliation: ''}.update(params))
end

Instance Attribute Details

#affiliationObject

Returns the value of attribute affiliation

Returns:

  • (Object)

    the current value of affiliation



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def affiliation
  @affiliation
end

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def email
  @email
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def name
  @name
end

#privilegedObject

Returns the value of attribute privileged

Returns:

  • (Object)

    the current value of privileged



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def privileged
  @privileged
end

#project_nameObject

Returns the value of attribute project_name

Returns:

  • (Object)

    the current value of project_name



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def project_name
  @project_name
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



26
27
28
# File 'lib/etna/clients/janus/models.rb', line 26

def role
  @role
end