Class: Bunq::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/bunq/client.rb

Overview

Configuration object for connecting to the bunq api

Constant Summary collapse

SANDBOX_BASE_URL =
'https://public-api.sandbox.bunq.com'
PRODUCTION_BASE_URL =
'https://api.bunq.com'
DEFAULT_LANGUAGE =
'nl_NL'
DEFAULT_REGION =
'nl_NL'
DEFAULT_GEOLOCATION =
'0 0 0 0 000'
DEFAULT_USER_AGENT =
"bunq ruby client #{Bunq::VERSION}"
DEFAULT_TIMEOUT =
60
DEFAULT_SESSION_CACHE =
NoSessionCache.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



158
159
160
161
162
163
164
165
166
167
168
# File 'lib/bunq/client.rb', line 158

def initialize
  @sandbox = false
  @base_url = PRODUCTION_BASE_URL
  @language = DEFAULT_LANGUAGE
  @region = DEFAULT_REGION
  @geolocation = DEFAULT_GEOLOCATION
  @user_agent = DEFAULT_USER_AGENT
  @disable_response_signature_verification = false
  @timeout = DEFAULT_TIMEOUT
  @session_cache = DEFAULT_SESSION_CACHE
end

Instance Attribute Details

#api_keyObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def api_key
  @api_key
end

#base_urlObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def base_url
  @base_url
end

#disable_response_signature_verificationObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def disable_response_signature_verification
  @disable_response_signature_verification
end

#geolocationObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def geolocation
  @geolocation
end

#installation_tokenObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def installation_token
  @installation_token
end

#languageObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def language
  @language
end

#private_keyObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def private_key
  @private_key
end

#regionObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def region
  @region
end

#sandboxObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def sandbox
  @sandbox
end

#sandbox_passwordObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def sandbox_password
  @sandbox_password
end

#sandbox_userObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def sandbox_user
  @sandbox_user
end

#server_public_keyObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def server_public_key
  @server_public_key
end

#session_cacheObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def session_cache
  @session_cache
end

#timeoutObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def timeout
  @timeout
end

#user_agentObject

Base url for the bunq api. Defaults to PRODUCTION_BASE_URL



122
123
124
# File 'lib/bunq/client.rb', line 122

def user_agent
  @user_agent
end