Module: LemonWay
- Defined in:
- lib/lemonway_ruby.rb,
lib/lemon_way/form.rb,
lib/lemon_way/error.rb,
lib/lemon_way/client.rb,
lib/lemon_way/wallet.rb,
lib/lemon_way/railtie.rb,
lib/lemon_way/version.rb,
lib/lemon_way/money_in.rb,
lib/lemon_way/money_out.rb,
lib/lemon_way/middleware.rb,
lib/lemon_way/generators/id.rb,
lib/lemon_way/helpers/forms.rb,
lib/lemon_way/response_adapter.rb
Defined Under Namespace
Modules: Generators, Helpers
Classes: Client, Form, LemonWayError, Middleware, MissingConfigurationError, MoneyIn, MoneyOut, Railtie, ResponseAdapter, Wallet
Constant Summary
collapse
- VERSION =
'0.9.0'.freeze
- @@client =
nil
- @@configuration =
{}
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
33
34
35
|
# File 'lib/lemonway_ruby.rb', line 33
def self.client
@@client || LemonWay.init
end
|
.configuration=(configuration) ⇒ Object
27
28
29
30
31
|
# File 'lib/lemonway_ruby.rb', line 27
def self.configuration=(configuration)
@@configuration = configuration
LemonWay.init
end
|
.init ⇒ Object
18
19
20
|
# File 'lib/lemonway_ruby.rb', line 18
def self.init
@@client = Client.new(@@configuration)
end
|
.reset ⇒ Object
22
23
24
25
|
# File 'lib/lemonway_ruby.rb', line 22
def self.reset
@@client = nil
@@configuration = {}
end
|