Class: ROM::Environment Private
- Inherits:
-
Object
- Object
- ROM::Environment
- Includes:
- Configurable
- Defined in:
- core/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
-
#config ⇒ Config
included
from Configurable
private
Return config instance.
-
#configure {|config| ... } ⇒ self
included
from Configurable
Yield config instance.
-
#initialize(*args) ⇒ Environment
constructor
private
A new instance of Environment.
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 'core/lib/rom/environment.rb', line 16 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.
13 14 15 |
# File 'core/lib/rom/environment.rb', line 13 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.
13 14 15 |
# File 'core/lib/rom/environment.rb', line 13 def gateways_map @gateways_map end |
Instance Method Details
#config ⇒ Config 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
#configure {|config| ... } ⇒ self Originally defined in module Configurable
Yield config instance