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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.


16
17
18
19
20
21
# File 'lib/rom/environment.rb', line 16

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.


13
14
15
# File 'lib/rom/environment.rb', line 13

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.


13
14
15
# File 'lib/rom/environment.rb', line 13

def gateways_map
  @gateways_map
end

Instance Method Details

#configConfig Originally defined in module Configurable

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.

Return config instance

Returns:

#configure {|config| ... } ⇒ self Originally defined in module Configurable

Yield config instance

Yields:

Returns:

  • (self)