Class: Net::NNTP::Body

Inherits:
RetrievalRequest show all
Defined in:
lib/net/nntp/request.rb

Overview

RFC 3977

BODY request

Valid Responses: BodyResponse, NoGroupSelected, InvalidArticle, InvalidNumberOrRange, NoSuchMessageid

Instance Method Summary collapse

Methods inherited from Request

#command, #dotstuff, #msgid_or_range, #range, #valid_response?

Constructor Details

#initialize(param = nil) ⇒ Body

  • param is either a message-id or an article number in the selected group.

see Net::NNTP::Article.new



480
481
482
# File 'lib/net/nntp/request.rb', line 480

def initialize(param=nil)
  super 'BODY', param
end

Instance Method Details

#capabilityObject



488
489
490
# File 'lib/net/nntp/request.rb', line 488

def capability
  'reader'
end