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

Returns a new instance of Local.



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

def initialize(status)
  @status = status
end

Instance Method Details

#[](key) ⇒ Object



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

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

#numberObject



71
72
73
# File 'lib/groonga-delta/import-status.rb', line 71

def number
  self["number"]
end

#update(new_data) ⇒ Object



67
68
69
# File 'lib/groonga-delta/import-status.rb', line 67

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