Class: Hermeneutics::Cli::ImapTools::CommandGeneric

Inherits:
Command
  • Object
show all
Defined in:
lib/hermeneutics/cli/imap/commands.rb

Instance Attribute Summary collapse

Attributes inherited from Command

#responses

Instance Method Summary collapse

Methods inherited from Command

#add_response, #stream_lines

Constructor Details

#initialize(name, *params) ⇒ CommandGeneric

Returns a new instance of CommandGeneric.



45
46
47
48
# File 'lib/hermeneutics/cli/imap/commands.rb', line 45

def initialize name, *params
  super *[]
  @name, @params = name, params
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



43
44
45
# File 'lib/hermeneutics/cli/imap/commands.rb', line 43

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params.



43
44
45
# File 'lib/hermeneutics/cli/imap/commands.rb', line 43

def params
  @params
end