Class: GroongaDelta::ImportStatus::Local

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga-delta/import-status.rb

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ Local



51
52
53
# File 'lib/groonga-delta/import-status.rb', line 51

def initialize(status)
  @status = status
end

Instance Method Details

#[](key) ⇒ Object



55
56
57
# File 'lib/groonga-delta/import-status.rb', line 55

def [](key)
  (@status["local"] || {})[key]
end

#numberObject



63
64
65
# File 'lib/groonga-delta/import-status.rb', line 63

def number
  self["number"]
end

#update(new_data) ⇒ Object



59
60
61
# File 'lib/groonga-delta/import-status.rb', line 59

def update(new_data)
  @status.update("local" => new_data)
end