Class: NntpScrape::ShortCommand
- Inherits:
-
NNTPCommand
- Object
- NNTPCommand
- NntpScrape::ShortCommand
- Defined in:
- lib/nntp_scrape/nntp_command.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from NNTPCommand
Instance Method Summary collapse
Methods inherited from NNTPCommand
Instance Method Details
#execute(client) ⇒ Object
19 20 21 22 23 |
# File 'lib/nntp_scrape/nntp_command.rb', line 19 def execute(client) socket = client.socket socket.print "#{cmd} #{params.join " "}\r\n" @status_line = socket.gets end |