Class: GroongaDelta::ImportConfig::Local

Inherits:
Object
  • Object
show all
Includes:
Config::PathResolvable
Defined in:
lib/groonga-delta/import-config.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir, data) ⇒ Local

Returns a new instance of Local.



154
155
156
157
# File 'lib/groonga-delta/import-config.rb', line 154

def initialize(dir, data)
  @dir = dir
  @data = data
end

Instance Method Details

#dirObject



159
160
161
# File 'lib/groonga-delta/import-config.rb', line 159

def dir
  resolve_path(@data["dir"] || "local")
end

#initial_max_numberObject



163
164
165
# File 'lib/groonga-delta/import-config.rb', line 163

def initial_max_number
  @data["initial_max_number"] || Float::INFINITY
end