Class: Johac::Config
- Inherits:
-
Struct
- Object
- Struct
- Johac::Config
- Defined in:
- lib/johac.rb
Overview
Simple config class used to store global Client settings.
Instance Attribute Summary collapse
-
#access_key ⇒ String
Public access key used for authorization of requests.
-
#auth_scheme ⇒ Symbol
Authorization scheme to be used on all requests,
:basicor:hmac. -
#base_uri ⇒ String
Hostname of Johac API.
-
#env ⇒ String
Environment.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#raise_exceptions ⇒ Object
Returns the value of attribute raise_exceptions.
-
#secret_key ⇒ String
Private key used for authorization of requests.
Instance Attribute Details
#access_key ⇒ String
Public access key used for authorization of requests.
21 22 23 |
# File 'lib/johac.rb', line 21 def access_key @access_key end |
#auth_scheme ⇒ Symbol
Authorization scheme to be used on all requests, :basic or :hmac.
21 22 23 |
# File 'lib/johac.rb', line 21 def auth_scheme @auth_scheme end |
#base_uri ⇒ String
Hostname of Johac API.
21 22 23 |
# File 'lib/johac.rb', line 21 def base_uri @base_uri end |
#env ⇒ String
Environment. ‘testing’, ‘development’, or ‘production’.
21 22 23 |
# File 'lib/johac.rb', line 21 def env @env end |
#logger ⇒ Object
Returns the value of attribute logger
21 22 23 |
# File 'lib/johac.rb', line 21 def logger @logger end |
#raise_exceptions ⇒ Object
Returns the value of attribute raise_exceptions
21 22 23 |
# File 'lib/johac.rb', line 21 def raise_exceptions @raise_exceptions end |
#secret_key ⇒ String
Private key used for authorization of requests.
21 22 23 |
# File 'lib/johac.rb', line 21 def secret_key @secret_key end |