Class: CycloneLariat::Repo::Versions
- Inherits:
-
Object
- Object
- CycloneLariat::Repo::Versions
- Extended by:
- Forwardable
- Includes:
- LunaPark::Extensions::Injector
- Defined in:
- lib/cyclone_lariat/repo/versions.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #driver ⇒ Object
-
#initialize(**options) ⇒ Versions
constructor
A new instance of Versions.
Constructor Details
#initialize(**options) ⇒ Versions
Returns a new instance of Versions.
23 24 25 |
# File 'lib/cyclone_lariat/repo/versions.rb', line 23 def initialize(**) @config = CycloneLariat::Options.wrap().merge!(CycloneLariat.config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/cyclone_lariat/repo/versions.rb', line 14 def config @config end |
Instance Method Details
#driver ⇒ Object
27 28 29 |
# File 'lib/cyclone_lariat/repo/versions.rb', line 27 def driver @driver ||= select(driver: config.driver) end |