Class: Hermeneutics::Cli::ImapTools::Login

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

Constant Summary collapse

NAME =
:LOGIN

Instance Attribute Summary collapse

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(user, passwd) ⇒ Login

Returns a new instance of Login.



63
64
65
66
# File 'lib/hermeneutics/cli/imap/commands.rb', line 63

def initialize user, passwd
  super *[]
  @user, @passwd = user, passwd
end

Instance Attribute Details

#passwdObject (readonly)

Returns the value of attribute passwd.



61
62
63
# File 'lib/hermeneutics/cli/imap/commands.rb', line 61

def passwd
  @passwd
end

#userObject (readonly)

Returns the value of attribute user.



61
62
63
# File 'lib/hermeneutics/cli/imap/commands.rb', line 61

def user
  @user
end

Instance Method Details

#paramsObject



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

def params ; [ @user, @passwd] ; end