Class: WCC::Arena::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/arena/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/wcc/arena/config.rb', line 3

def api_key
  @api_key
end

#api_secretObject

Returns the value of attribute api_secret.



3
4
5
# File 'lib/wcc/arena/config.rb', line 3

def api_secret
  @api_secret
end

#api_urlObject

Returns the value of attribute api_url.



4
5
6
# File 'lib/wcc/arena/config.rb', line 4

def api_url
  @api_url
end

#connectionObject

Returns the value of attribute connection.



5
6
7
# File 'lib/wcc/arena/config.rb', line 5

def connection
  @connection
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/wcc/arena/config.rb', line 5

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/wcc/arena/config.rb', line 3

def password
  @password
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/wcc/arena/config.rb', line 3

def username
  @username
end

Instance Method Details

#sessionObject



11
12
13
14
15
16
17
18
19
# File 'lib/wcc/arena/config.rb', line 11

def session
  @session ||= WCC::Arena::Session.new(
    connection: connection,
    username: username,
    password: password,
    api_key: api_key,
    api_secret: api_secret
  )
end