Class: Coinpayments::Configuration
- Inherits:
-
Object
- Object
- Coinpayments::Configuration
- Defined in:
- lib/coinpayments/configuration.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#private_api_key ⇒ Object
Returns the value of attribute private_api_key.
-
#public_api_key ⇒ Object
Returns the value of attribute public_api_key.
-
#secret_phrase ⇒ Object
Returns the value of attribute secret_phrase.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 |
# File 'lib/coinpayments/configuration.rb', line 5 def initialize @version = 1 @base_uri = 'https://www.coinpayments.net/api.php' @merchant_id = '' @public_api_key = '' @private_api_key = '' @secret_phrase = '' end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def base_uri @base_uri end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def merchant_id @merchant_id end |
#private_api_key ⇒ Object
Returns the value of attribute private_api_key.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def private_api_key @private_api_key end |
#public_api_key ⇒ Object
Returns the value of attribute public_api_key.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def public_api_key @public_api_key end |
#secret_phrase ⇒ Object
Returns the value of attribute secret_phrase.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def secret_phrase @secret_phrase end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/coinpayments/configuration.rb', line 3 def version @version end |