Class: Wompi::Configuration
- Inherits:
-
Object
- Object
- Wompi::Configuration
- Defined in:
- lib/wompi/configuration.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#integrity_secret ⇒ Object
Returns the value of attribute integrity_secret.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/wompi/configuration.rb', line 5 def initialize @environment = :sandbox end |
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
3 4 5 |
# File 'lib/wompi/configuration.rb', line 3 def environment @environment end |
#integrity_secret ⇒ Object
Returns the value of attribute integrity_secret.
3 4 5 |
# File 'lib/wompi/configuration.rb', line 3 def integrity_secret @integrity_secret end |
#private_key ⇒ Object
Returns the value of attribute private_key.
3 4 5 |
# File 'lib/wompi/configuration.rb', line 3 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
3 4 5 |
# File 'lib/wompi/configuration.rb', line 3 def public_key @public_key end |
Instance Method Details
#base_url ⇒ Object
9 10 11 |
# File 'lib/wompi/configuration.rb', line 9 def base_url @environment == :production ? "https://production.wompi.co/v1" : "https://sandbox.wompi.co/v1" end |