Class: OfflineSort::Sorter::ChunkEntry
- Inherits:
-
Object
- Object
- OfflineSort::Sorter::ChunkEntry
- Defined in:
- lib/offline_sort/offline_sort.rb
Instance Attribute Summary collapse
-
#chunk_number ⇒ Object
readonly
Returns the value of attribute chunk_number.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(chunk_number, data) ⇒ ChunkEntry
constructor
A new instance of ChunkEntry.
Constructor Details
#initialize(chunk_number, data) ⇒ ChunkEntry
Returns a new instance of ChunkEntry.
89 90 91 92 |
# File 'lib/offline_sort/offline_sort.rb', line 89 def initialize(chunk_number, data) @chunk_number = chunk_number @data = data end |
Instance Attribute Details
#chunk_number ⇒ Object (readonly)
Returns the value of attribute chunk_number.
87 88 89 |
# File 'lib/offline_sort/offline_sort.rb', line 87 def chunk_number @chunk_number end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
87 88 89 |
# File 'lib/offline_sort/offline_sort.rb', line 87 def data @data end |