Class: Hermeneutics::Cli::ImapTools::Auth
- Inherits:
-
CommandNamed
- Object
- Command
- CommandNamed
- Hermeneutics::Cli::ImapTools::Auth
- Defined in:
- lib/hermeneutics/cli/imap/commands.rb
Direct Known Subclasses
Constant Summary collapse
- NAME =
:AUTHENTICATE
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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user, passwd) ⇒ Auth
constructor
A new instance of Auth.
- #params ⇒ Object
Methods inherited from CommandNamed
Methods inherited from Command
Constructor Details
#initialize(user, passwd) ⇒ Auth
Returns a new instance of Auth.
90 91 92 93 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 90 def initialize user, passwd super *[] @user, @passwd = user, passwd end |
Instance Attribute Details
#passwd ⇒ Object (readonly)
Returns the value of attribute passwd.
88 89 90 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 88 def passwd @passwd end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
88 89 90 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 88 def user @user end |
Class Method Details
.find(type) ⇒ Object
82 83 84 85 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 82 def find type type = type.to_sym @sub.find { |c| c::TYPE == type } end |
.inherited(cls) ⇒ Object
79 80 81 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 79 def inherited cls @sub.push cls end |
Instance Method Details
#params ⇒ Object
95 |
# File 'lib/hermeneutics/cli/imap/commands.rb', line 95 def params ; [ self.class::TYPE] ; end |