Class: MudratProjector::Projection::SequenceEntry
- Inherits:
-
Struct
- Object
- Struct
- MudratProjector::Projection::SequenceEntry
- Defined in:
- lib/mudrat_projector/projection.rb
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
Returns the value of attribute batch_id.
-
#transaction ⇒ Object
Returns the value of attribute transaction.
Instance Method Summary collapse
Instance Attribute Details
#batch_id ⇒ Object
Returns the value of attribute batch_id
5 6 7 |
# File 'lib/mudrat_projector/projection.rb', line 5 def batch_id @batch_id end |
#transaction ⇒ Object
Returns the value of attribute transaction
5 6 7 |
# File 'lib/mudrat_projector/projection.rb', line 5 def transaction @transaction end |
Instance Method Details
#<=>(other_entry) ⇒ Object
10 11 12 |
# File 'lib/mudrat_projector/projection.rb', line 10 def <=> other_entry sort_key <=> other_entry.sort_key end |
#sort_key ⇒ Object
6 7 8 |
# File 'lib/mudrat_projector/projection.rb', line 6 def sort_key [transaction.date, batch_id] end |