Class: NntpScrape::ShortCommand

Inherits:
NNTPCommand show all
Defined in:
lib/nntp_scrape/nntp_command.rb

Direct Known Subclasses

LongCommand

Instance Attribute Summary

Attributes inherited from NNTPCommand

#response, #status_line

Instance Method Summary collapse

Methods inherited from NNTPCommand

#status_code, #success?

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