Class: Johac::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/johac.rb

Overview

Simple config class used to store global Client settings.

Instance Attribute Summary collapse

Instance Attribute Details

#access_keyString

Public access key used for authorization of requests.

Returns:

  • (String)

    the current value of access_key



21
22
23
# File 'lib/johac.rb', line 21

def access_key
  @access_key
end

#auth_schemeSymbol

Authorization scheme to be used on all requests, :basic or :hmac.

Returns:

  • (Symbol)

    the current value of auth_scheme



21
22
23
# File 'lib/johac.rb', line 21

def auth_scheme
  @auth_scheme
end

#base_uriString

Hostname of Johac API.

Returns:

  • (String)

    the current value of base_uri



21
22
23
# File 'lib/johac.rb', line 21

def base_uri
  @base_uri
end

#envString

Environment. ‘testing’, ‘development’, or ‘production’.

Returns:

  • (String)

    the current value of env



21
22
23
# File 'lib/johac.rb', line 21

def env
  @env
end

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



21
22
23
# File 'lib/johac.rb', line 21

def logger
  @logger
end

#raise_exceptionsObject

Returns the value of attribute raise_exceptions

Returns:

  • (Object)

    the current value of raise_exceptions



21
22
23
# File 'lib/johac.rb', line 21

def raise_exceptions
  @raise_exceptions
end

#request_tapObject

Returns the value of attribute request_tap

Returns:

  • (Object)

    the current value of request_tap



21
22
23
# File 'lib/johac.rb', line 21

def request_tap
  @request_tap
end

#secret_keyString

Private key used for authorization of requests.

Returns:

  • (String)

    the current value of secret_key



21
22
23
# File 'lib/johac.rb', line 21

def secret_key
  @secret_key
end