Class: Net::NNTP::Xhdr
Overview
Instance Method Summary collapse
-
#initialize(field, range = nil) ⇒ Xhdr
constructor
-
field
is the header field that should be retrieved *range
can be a string or a hash with either the key :msgid or the keys :start and optionally :end to denote a range.
-
Methods inherited from Request
#capability, #command, #dotstuff, #msgid_or_range, #range, #valid_response?
Constructor Details
#initialize(field, range = nil) ⇒ Xhdr
-
field
is the header field that should be retrieved -
range
can be a string or a hash with either the key :msgid or the keys :start and optionally :end to denote a range.
800 801 802 803 804 |
# File 'lib/net/nntp/request.rb', line 800 def initialize(field, range=nil) params = field params << ' ' << msgid_or_range(range) if range super 'XHDR', params end |