Class: Mailmate::CLI::Search::Row Private
- Inherits:
-
Struct
- Object
- Struct
- Mailmate::CLI::Search::Row
- Defined in:
- lib/mailmate/cli/search.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
One matched message on its way to the output. cells are the
extracted output columns in fields order; keys holds the values
of any sort/limit key that is NOT an output column (extracted while
the message was live, so ordering never re-reads a .eml); instant
is the absolute send time (nil when unknown); index is scan order,
the last-resort tie-break. Ordering keys off these, never off the
cells — a bare fields list may omit id, and the old
rows[0].to_i shortcut silently sorted such runs by readdir order.
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
-
#eml_id ⇒ Object
Returns the value of attribute eml_id.
-
#index ⇒ Object
Returns the value of attribute index.
-
#instant ⇒ Object
Returns the value of attribute instant.
-
#keys ⇒ Object
Returns the value of attribute keys.
Instance Method Summary collapse
- #instant_or_epoch ⇒ Object private
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells
51 52 53 |
# File 'lib/mailmate/cli/search.rb', line 51 def cells @cells end |
#eml_id ⇒ Object
Returns the value of attribute eml_id
51 52 53 |
# File 'lib/mailmate/cli/search.rb', line 51 def eml_id @eml_id end |
#index ⇒ Object
Returns the value of attribute index
51 52 53 |
# File 'lib/mailmate/cli/search.rb', line 51 def index @index end |
#instant ⇒ Object
Returns the value of attribute instant
51 52 53 |
# File 'lib/mailmate/cli/search.rb', line 51 def instant @instant end |
#keys ⇒ Object
Returns the value of attribute keys
51 52 53 |
# File 'lib/mailmate/cli/search.rb', line 51 def keys @keys end |
Instance Method Details
#instant_or_epoch ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
52 |
# File 'lib/mailmate/cli/search.rb', line 52 def instant_or_epoch = instant || Time.at(0) |