Class: EcfDgii::Configuration
- Inherits:
-
Object
- Object
- EcfDgii::Configuration
- Defined in:
- lib/ecf-dgii.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 |
# File 'lib/ecf-dgii.rb', line 30 def initialize @api_key = ENV["ECF_API_KEY"] @base_url = ENV["ECF_API_URL"] @environment = :test @timeout = 30 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
28 29 30 |
# File 'lib/ecf-dgii.rb', line 28 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
28 29 30 |
# File 'lib/ecf-dgii.rb', line 28 def base_url @base_url end |
#environment ⇒ Object
Returns the value of attribute environment.
28 29 30 |
# File 'lib/ecf-dgii.rb', line 28 def environment @environment end |
#timeout ⇒ Object
Returns the value of attribute timeout.
28 29 30 |
# File 'lib/ecf-dgii.rb', line 28 def timeout @timeout end |