Class: CycloneLariat::Repo::Versions

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
LunaPark::Extensions::Injector
Defined in:
lib/cyclone_lariat/repo/versions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(**options)
  @config = CycloneLariat::Options.wrap(options).merge!(CycloneLariat.config)
end

Instance Attribute Details

#configObject (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

#driverObject



27
28
29
# File 'lib/cyclone_lariat/repo/versions.rb', line 27

def driver
  @driver ||= select(driver: config.driver)
end