Class: LAA::FeeCalculator::Configuration
- Inherits:
-
Object
- Object
- LAA::FeeCalculator::Configuration
- 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
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#host ⇒ Object
Returns the value of attribute host.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#cache ⇒ Object
Returns the value of attribute cache.
9 10 11 |
# File 'lib/laa/fee_calculator/configuration.rb', line 9 def cache @cache end |
#headers ⇒ Object
Returns the value of attribute headers.
9 10 11 |
# File 'lib/laa/fee_calculator/configuration.rb', line 9 def headers @headers end |
#host ⇒ Object
Returns the value of attribute host.
9 10 11 |
# File 'lib/laa/fee_calculator/configuration.rb', line 9 def host @host end |
#logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/laa/fee_calculator/configuration.rb', line 9 def logger @logger end |