Class: Hermeneutics::Cli::ImapTools::Login
- Inherits:
-
CommandNamed
- Object
- Command
- CommandNamed
- Hermeneutics::Cli::ImapTools::Login
- Defined in:
- lib/hermeneutics/cli/imap/commands.rb
Constant Summary collapse
- NAME =
:LOGIN
Instance Attribute Summary collapse
-
#passwd ⇒ Object
readonly
Returns the value of attribute passwd.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize(user, passwd) ⇒ Login
constructor
A new instance of Login.
- #params ⇒ Object
Methods inherited from CommandNamed
Methods inherited from Command
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
#passwd ⇒ Object (readonly)
Returns the value of attribute passwd.
61 62 63 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 61 def passwd @passwd end |
#user ⇒ Object (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
#params ⇒ Object
68 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 68 def params ; [ @user, @passwd] ; end |