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
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 |
#number ⇒ Object
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 |