Module: Chewy::Runtime

Defined in:
lib/chewy/runtime.rb,
lib/chewy/runtime/version.rb

Defined Under Namespace

Classes: Version

Class Method Summary collapse

Class Method Details

.versionObject



5
6
7
# File 'lib/chewy/runtime.rb', line 5

def self.version
  Chewy.current[:chewy_runtime_version] ||= Version.new(Chewy.client.info['version']['number'])
end