Class: WCC::Arena::Config
- Inherits:
-
Object
- Object
- WCC::Arena::Config
- Defined in:
- lib/wcc/arena/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
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_secret ⇒ Object
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_url ⇒ Object
Returns the value of attribute api_url.
4 5 6 |
# File 'lib/wcc/arena/config.rb', line 4 def api_url @api_url end |
#connection ⇒ Object
Returns the value of attribute connection.
5 6 7 |
# File 'lib/wcc/arena/config.rb', line 5 def connection @connection end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/wcc/arena/config.rb', line 5 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/wcc/arena/config.rb', line 3 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/wcc/arena/config.rb', line 3 def username @username end |
Instance Method Details
#session ⇒ Object
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 |