Class: Mailmate::CLI::Search::Row Private

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#cellsObject

Returns the value of attribute cells

Returns:

  • (Object)

    the current value of cells



49
50
51
# File 'lib/mailmate/cli/search.rb', line 49

def cells
  @cells
end

#eml_idObject

Returns the value of attribute eml_id

Returns:

  • (Object)

    the current value of eml_id



49
50
51
# File 'lib/mailmate/cli/search.rb', line 49

def eml_id
  @eml_id
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



49
50
51
# File 'lib/mailmate/cli/search.rb', line 49

def index
  @index
end

#instantObject

Returns the value of attribute instant

Returns:

  • (Object)

    the current value of instant



49
50
51
# File 'lib/mailmate/cli/search.rb', line 49

def instant
  @instant
end

#keysObject

Returns the value of attribute keys

Returns:

  • (Object)

    the current value of keys



49
50
51
# File 'lib/mailmate/cli/search.rb', line 49

def keys
  @keys
end

Instance Method Details

#instant_or_epochObject

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.



50
# File 'lib/mailmate/cli/search.rb', line 50

def instant_or_epoch = instant || Time.at(0)