Class: GroongaDelta::ImportStatus::Local
- Inherits:
-
Object
- Object
- GroongaDelta::ImportStatus::Local
- Defined in:
- lib/groonga-delta/import-status.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(status) ⇒ Local
constructor
A new instance of Local.
- #number ⇒ Object
- #update(new_data) ⇒ Object
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 |
#number ⇒ Object
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 |