Class: Roqua::CoreApi::Sessions::BasicAuthSession

Inherits:
AuthSession
  • Object
show all
Defined in:
lib/roqua/core_api/sessions/basic_auth_session.rb

Instance Attribute Summary collapse

Attributes inherited from AuthSession

#core_site, #default_timeout

Instance Method Summary collapse

Methods inherited from AuthSession

#delete, #get, #patch, #post

Constructor Details

#initialize(username: ENV.fetch('CORE_BASICAUTH_ID'), password: ENV.fetch('CORE_BASICAUTH_SECRET'), **additional_arguments) ⇒ BasicAuthSession

Returns a new instance of BasicAuthSession.



8
9
10
11
12
13
14
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 8

def initialize(username: ENV.fetch('CORE_BASICAUTH_ID'),
               password: ENV.fetch('CORE_BASICAUTH_SECRET'),
               **additional_arguments)
  @username = username
  @password = password
  super(**additional_arguments)
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



6
7
8
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 6

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 5

def username
  @username
end