Class: Hermeneutics::Cli::ImapTools::Search

Inherits:
CommandNamed show all
Defined in:
lib/hermeneutics/cli/imap/commands.rb

Constant Summary collapse

NAME =
:SEARCH

Instance Attribute Summary

Attributes inherited from Command

#responses

Instance Method Summary collapse

Methods inherited from CommandNamed

#name

Methods inherited from Command

#add_response, #stream_lines

Constructor Details

#initialize(*criteria) ⇒ Search

Returns a new instance of Search.



237
238
239
240
# File 'lib/hermeneutics/cli/imap/commands.rb', line 237

def initialize *criteria
  super *[]
  @criteria = criteria
end

Instance Method Details

#paramsObject



242
# File 'lib/hermeneutics/cli/imap/commands.rb', line 242

def params ; @criteria ; end