Module: Ecocash

Defined in:
lib/ecocash.rb,
lib/ecocash/client.rb,
lib/ecocash/version.rb,
lib/ecocash/configuration.rb

Defined Under Namespace

Classes: Client, Configuration

Constant Summary collapse

VERSION =
'1.0.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



8
9
10
# File 'lib/ecocash.rb', line 8

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
# File 'lib/ecocash.rb', line 19

def self.configure
  yield(configuration)
end

.resetObject



15
16
17
# File 'lib/ecocash.rb', line 15

def self.reset
  @configuration = Configuration.new
end