Class: Crefo::Configuration

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

Defined Under Namespace

Modules: Builder

Constant Summary collapse

CURRENT_KEYLISTVERSION =
21
ENDPOINTS =
{
  default: 'https://onlineservice.creditreform.de:443/webservice/0600-0021/soap12/messages.wsdl',
  test: 'https://ktu.onlineservice.creditreform.de:443/webservice/0600-0021/soap12/messages.wsdl'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
17
18
19
20
# File 'lib/crefo/configuration.rb', line 14

def initialize
  @keylistversion = CURRENT_KEYLISTVERSION
  @communicationlanguage = 'de'
  @clientapplicationversion = Crefo::VERSION.to_i
  @connection_options = {}
  @endpoint = :default
end

Instance Attribute Details

#clientapplicationnameObject

Returns the value of attribute clientapplicationname.



10
11
12
# File 'lib/crefo/configuration.rb', line 10

def clientapplicationname
  @clientapplicationname
end

#clientapplicationversionObject

Returns the value of attribute clientapplicationversion.



10
11
12
# File 'lib/crefo/configuration.rb', line 10

def clientapplicationversion
  @clientapplicationversion
end

#communicationlanguageObject

Returns the value of attribute communicationlanguage.



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

def communicationlanguage
  @communicationlanguage
end

#connection_optionsObject

Returns the value of attribute connection_options.



11
12
13
# File 'lib/crefo/configuration.rb', line 11

def connection_options
  @connection_options
end

#endpointObject



22
23
24
# File 'lib/crefo/configuration.rb', line 22

def endpoint
  ENDPOINTS.fetch(@endpoint, @endpoint)
end

#generalpasswordObject

Returns the value of attribute generalpassword.



11
12
13
# File 'lib/crefo/configuration.rb', line 11

def generalpassword
  @generalpassword
end

#individualpasswordObject

Returns the value of attribute individualpassword.



11
12
13
# File 'lib/crefo/configuration.rb', line 11

def individualpassword
  @individualpassword
end

#keylistversionObject

Returns the value of attribute keylistversion.



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

def keylistversion
  @keylistversion
end

#transactionreferenceObject

Returns the value of attribute transactionreference.



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

def transactionreference
  @transactionreference
end

#useraccountObject

Returns the value of attribute useraccount.



11
12
13
# File 'lib/crefo/configuration.rb', line 11

def useraccount
  @useraccount
end