Class: Bunq::Configuration
- Inherits:
-
Object
- Object
- Bunq::Configuration
- 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
-
#api_key ⇒ Object
Base url for the bunq api.
-
#base_url ⇒ Object
Base url for the bunq api.
-
#disable_response_signature_verification ⇒ Object
Base url for the bunq api.
-
#geolocation ⇒ Object
Base url for the bunq api.
-
#installation_token ⇒ Object
Base url for the bunq api.
-
#language ⇒ Object
Base url for the bunq api.
-
#private_key ⇒ Object
Base url for the bunq api.
-
#region ⇒ Object
Base url for the bunq api.
-
#sandbox ⇒ Object
Base url for the bunq api.
-
#sandbox_password ⇒ Object
Base url for the bunq api.
-
#sandbox_user ⇒ Object
Base url for the bunq api.
-
#server_public_key ⇒ Object
Base url for the bunq api.
-
#session_cache ⇒ Object
Base url for the bunq api.
-
#timeout ⇒ Object
Base url for the bunq api.
-
#user_agent ⇒ Object
Base url for the bunq api.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_url ⇒ Object
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_verification ⇒ Object
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 |
#geolocation ⇒ Object
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_token ⇒ Object
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 |
#language ⇒ Object
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_key ⇒ Object
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 |
#region ⇒ Object
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 |
#sandbox ⇒ Object
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_password ⇒ Object
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_user ⇒ Object
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_key ⇒ Object
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_cache ⇒ Object
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 |
#timeout ⇒ Object
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_agent ⇒ Object
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 |