Module: Getnet
- Extended by:
- Forwardable
- Defined in:
- lib/getnet.rb,
lib/getnet/config.rb,
lib/getnet/credit_card.rb,
lib/getnet/authorization.rb,
lib/getnet/payment/iframe.rb
Defined Under Namespace
Modules: Payment
Classes: Authorization, Config, CreditCard
Class Method Summary
collapse
Class Method Details
.base_uri ⇒ Object
23
24
25
26
27
|
# File 'lib/getnet.rb', line 23
def self.base_uri
environment == :sandbox ?
"https://api-sandbox.getnet.com.br" :
"https://api-homologacao.getnet.com.br"
end
|
.configuration ⇒ Object
19
20
21
|
# File 'lib/getnet.rb', line 19
def self.configuration
@configuration ||= Getnet::Config.new
end
|
33
34
35
|
# File 'lib/getnet.rb', line 33
def self.configure
yield configuration
end
|
.uri_path(path) ⇒ Object
29
30
31
|
# File 'lib/getnet.rb', line 29
def self.uri_path(path)
base_uri + path
end
|