Class: ROM::Environment Private

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/rom/environment.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Core gateway configuration interface

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Configurable

#config, #configure

Constructor Details

#initialize(*args) ⇒ Environment

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Environment.

API:

  • private



14
15
16
17
18
19
# File 'lib/rom/environment.rb', line 14

def initialize(*args)
  @gateways = {}
  @gateways_map = {}

  configure_gateways(*args) unless args.empty?
end

Instance Attribute Details

#gatewaysObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



11
12
13
# File 'lib/rom/environment.rb', line 11

def gateways
  @gateways
end

#gateways_mapObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



11
12
13
# File 'lib/rom/environment.rb', line 11

def gateways_map
  @gateways_map
end