Module: BS2

Extended by:
Forwardable
Defined in:
lib/bs2.rb,
lib/bs2/version.rb

Defined Under Namespace

Classes: Configuration, Connection

Constant Summary collapse

ENV_URL =
{
  sandbox: "https://apihmz.bancobonsucesso.com.br",
  production: "https://api.bs2.com"
}
VERSION =
"0.3.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Configuration



21
22
23
# File 'lib/bs2.rb', line 21

def configuration
  @configuration ||= Configuration.new
end

.connectionObject

Connection



30
31
32
# File 'lib/bs2.rb', line 30

def connection
  @connection ||= Connection.new
end

Class Method Details

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

Yields:



25
26
27
# File 'lib/bs2.rb', line 25

def configure
  yield(configuration)
end