Class: EcfDgii::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ecf-dgii.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



28
29
30
# File 'lib/ecf-dgii.rb', line 28

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



28
29
30
# File 'lib/ecf-dgii.rb', line 28

def base_url
  @base_url
end

#environmentObject

Returns the value of attribute environment.



28
29
30
# File 'lib/ecf-dgii.rb', line 28

def environment
  @environment
end

#timeoutObject

Returns the value of attribute timeout.



28
29
30
# File 'lib/ecf-dgii.rb', line 28

def timeout
  @timeout
end