Class: Net::NNTP::DateResponse
- Inherits:
-
InformationResponse
- Object
- Response
- InformationResponse
- Net::NNTP::DateResponse
- Defined in:
- lib/net/nntp/response.rb
Overview
Code: 111
DATE response.
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
-
#date ⇒ Object
Returns the date given as message from server.
Methods included from BodyBaseResponse
Methods inherited from Response
#==, #body, class_from_code, create, #force_close?, #generic?, #has_body?, #initialize, #multiline?, #needs_article?
Constructor Details
This class inherits a constructor from Net::NNTP::Response
Instance Method Details
#date ⇒ Object
Returns the date given as message from server.
197 198 199 |
# File 'lib/net/nntp/response.rb', line 197 def date DateTime.parse(@message) end |