Class: GroongaDelta::ApplyConfig::Groonga

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga-delta/apply-config.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir, data) ⇒ Groonga

Returns a new instance of Groonga.



51
52
53
54
# File 'lib/groonga-delta/apply-config.rb', line 51

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

Instance Method Details

#read_timeoutObject



60
61
62
# File 'lib/groonga-delta/apply-config.rb', line 60

def read_timeout
  @data["read_timeout"] || ::Groonga::Client::Default::READ_TIMEOUT
end

#urlObject



56
57
58
# File 'lib/groonga-delta/apply-config.rb', line 56

def url
  @data["url"] || "http://127.0.0.1:10041"
end