Class: ROM::Environment Private
- Inherits:
-
Object
- Object
- ROM::Environment
- 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
- #gateways ⇒ Object readonly private
- #gateways_map ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(*args) ⇒ Environment
constructor
private
A new instance of Environment.
Methods included from Configurable
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.
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
#gateways ⇒ Object (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.
11 12 13 |
# File 'lib/rom/environment.rb', line 11 def gateways @gateways end |
#gateways_map ⇒ Object (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.
11 12 13 |
# File 'lib/rom/environment.rb', line 11 def gateways_map @gateways_map end |