Class: Bitkassa::Config
- Inherits:
-
Object
- Object
- Bitkassa::Config
- Defined in:
- lib/bitkassa/config.rb
Overview
Contains the global configuration for the library.
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Base URI where all calls are redirected to.
-
#debug ⇒ Object
Gets the current debug mode.
-
#merchant_id ⇒ Object
The Merchant ID you received with your Bitkassa Account.
-
#secret_api_key ⇒ Object
The Secret API key you received with your Bitkassa Account.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Sets defaults for the configuration.
Constructor Details
#initialize ⇒ Config
Sets defaults for the configuration.
18 19 20 21 |
# File 'lib/bitkassa/config.rb', line 18 def initialize @base_uri = "https://www.bitkassa.nl/api/v1" self.debug = false end |
Instance Attribute Details
#base_uri ⇒ Object
Base URI where all calls are redirected to. Defaults to https://www.bitkassa.nl/api/v1. Use when e.g. a proxy or self-hosted variant is used.
12 13 14 |
# File 'lib/bitkassa/config.rb', line 12 def base_uri @base_uri end |
#debug ⇒ Object
Gets the current debug mode.
15 16 17 |
# File 'lib/bitkassa/config.rb', line 15 def debug @debug end |
#merchant_id ⇒ Object
The Merchant ID you received with your Bitkassa Account.
8 9 10 |
# File 'lib/bitkassa/config.rb', line 8 def merchant_id @merchant_id end |
#secret_api_key ⇒ Object
The Secret API key you received with your Bitkassa Account.
6 7 8 |
# File 'lib/bitkassa/config.rb', line 6 def secret_api_key @secret_api_key end |