Class: Narabikae::ActiveRecordHandler
- Inherits:
-
Object
- Object
- Narabikae::ActiveRecordHandler
- Defined in:
- lib/narabikae/active_record_handler.rb
Instance Method Summary collapse
-
#create_last_position ⇒ String
Generates a new key for the last position.
-
#initialize(record, column) ⇒ ActiveRecordHandler
constructor
Initializes a new instance of the ActiveRecordHandler class.
Constructor Details
#initialize(record, column) ⇒ ActiveRecordHandler
Initializes a new instance of the ActiveRecordHandler class.
7 8 9 10 |
# File 'lib/narabikae/active_record_handler.rb', line 7 def initialize(record, column) @record = record @column = column end |
Instance Method Details
#create_last_position ⇒ String
Generates a new key for the last position
15 16 17 |
# File 'lib/narabikae/active_record_handler.rb', line 15 def create_last_position FractionalIndexer.generate_key(prev_key: current_last_position) end |