Class: LAA::FeeCalculator::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/laa/fee_calculator/configuration.rb

Constant Summary collapse

LAA_FEE_CALCULATOR_API_V1 =
'https://laa-fee-calculator.service.justice.gov.uk/api/v1'
HEADERS =
{ 'Accept' => 'application/json', 'User-Agent' => USER_AGENT }.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
# File 'lib/laa/fee_calculator/configuration.rb', line 11

def initialize
  @host = host || LAA_FEE_CALCULATOR_API_V1
  @headers = headers || HEADERS
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



9
10
11
# File 'lib/laa/fee_calculator/configuration.rb', line 9

def cache
  @cache
end

#headersObject

Returns the value of attribute headers.



9
10
11
# File 'lib/laa/fee_calculator/configuration.rb', line 9

def headers
  @headers
end

#hostObject

Returns the value of attribute host.



9
10
11
# File 'lib/laa/fee_calculator/configuration.rb', line 9

def host
  @host
end

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/laa/fee_calculator/configuration.rb', line 9

def logger
  @logger
end