Class: Net::NNTP::DateResponse

Inherits:
InformationResponse show all
Defined in:
lib/net/nntp/response.rb

Overview

Code: 111

DATE response.

Instance Attribute Summary

Attributes inherited from Response

#code, #message, #request

Instance Method Summary collapse

Methods included from BodyBaseResponse

#body, #body=, #parse_body

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

#dateObject

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