Class: GroongaDelta::ImportStatus::MySQL
- Inherits:
-
Object
- Object
- GroongaDelta::ImportStatus::MySQL
- Defined in:
- lib/groonga-delta/import-status.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #file ⇒ Object
-
#initialize(status) ⇒ MySQL
constructor
A new instance of MySQL.
- #position ⇒ Object
- #update(new_data) ⇒ Object
Constructor Details
#initialize(status) ⇒ MySQL
Returns a new instance of MySQL.
29 30 31 |
# File 'lib/groonga-delta/import-status.rb', line 29 def initialize(status) @status = status end |
Instance Method Details
#[](key) ⇒ Object
33 34 35 |
# File 'lib/groonga-delta/import-status.rb', line 33 def [](key) (@status["mysql"] || {})[key] end |
#file ⇒ Object
41 42 43 |
# File 'lib/groonga-delta/import-status.rb', line 41 def file self["file"] end |
#position ⇒ Object
45 46 47 |
# File 'lib/groonga-delta/import-status.rb', line 45 def position self["position"] end |
#update(new_data) ⇒ Object
37 38 39 |
# File 'lib/groonga-delta/import-status.rb', line 37 def update(new_data) @status.update("mysql" => new_data) end |