Class: Net::NNTP::Article

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

Overview

RFC 3977

ARTICLE Request (headers and body).

Valid Responses: ArticleResponse, 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) ⇒ Article

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

Usage Example:

request = Net::NNTP::Article.new(100)  # => request.command will be 'ARTICLE 100'


432
433
434
# File 'lib/net/nntp/request.rb', line 432

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

Instance Method Details

#capabilityObject



440
441
442
# File 'lib/net/nntp/request.rb', line 440

def capability
  'reader'
end