Class: NntpScrape::Commands::AuthInfo
- Defined in:
- lib/nntp_scrape/commands/auth_info.rb
Instance Attribute Summary
Attributes inherited from Base
#lines, #response, #status_line, #timeout
Instance Method Summary collapse
- #execute(client) ⇒ Object
-
#initialize(type, value) ⇒ AuthInfo
constructor
A new instance of AuthInfo.
Methods inherited from Base
#continue?, #ran?, #run_long, #run_short, #status_code, #success?, supported?
Constructor Details
#initialize(type, value) ⇒ AuthInfo
Returns a new instance of AuthInfo.
5 6 7 8 |
# File 'lib/nntp_scrape/commands/auth_info.rb', line 5 def initialize(type, value) @type = type @value = value end |
Instance Method Details
#execute(client) ⇒ Object
10 11 12 |
# File 'lib/nntp_scrape/commands/auth_info.rb', line 10 def execute(client) run_short client, "AUTHINFO", @type, @value end |