Class: Net::NNTP::Newgroups
Overview
RFC 3977
NEWGROUPS request.
Valid Response: NewgroupsResponse
Instance Method Summary
collapse
Methods inherited from Request
#command, #dotstuff, #msgid_or_range, #range, #valid_response?
Constructor Details
#initialize(date_str, is_gmt = true) ⇒ Newgroups
-
date_str
should be a string that will be parsed by DateTime.parse. Do not use system dates, rather use the date given by a Date request or a formerly stored date from a Date request.
-
is_gmt
denotes that the given date should be used as GMT (UTC) date (adding the string GMT to the request.) Use if possible.
669
670
671
|
# File 'lib/net/nntp/request.rb', line 669
def initialize(date_str, is_gmt=true)
super 'NEWGROUPS', DateTime.parse(date_str, true).strftime('%Y%m%d %H%M%S') << (is_gmt ? ' GMT' : '')
end
|
Instance Method Details
#capability ⇒ Object
678
679
680
|
# File 'lib/net/nntp/request.rb', line 678
def capability
'reader'
end
|