class BrregGrunndata::Configuration

Contains configuration for the web service client

Constants

WSDL_PATH

We have a saved WSDL at this location on disk

WSDL_URL

WSDL is located at this URL

Attributes

log_level[R]
logger[R]
open_timeout[R]
password[R]
read_timeout[R]
userid[R]
wsdl[R]

Public Class Methods

new( userid:, password:, open_timeout: 15, read_timeout: 15, logger: nil, log_level: :info, wsdl: WSDL_PATH ) click to toggle source

rubocop:disable Metrics/ParameterLists

# File lib/brreg_grunndata/configuration.rb, line 18
def initialize(
  userid:,
  password:,
  open_timeout: 15,
  read_timeout: 15,
  logger: nil,
  log_level: :info,
  wsdl: WSDL_PATH
)
  @userid = userid
  @password = password
  @open_timeout = open_timeout
  @read_timeout = read_timeout
  @logger = logger
  @log_level = log_level
  @wsdl = wsdl
end