Class: Net::NNTP::Modereader

Inherits:
Request
  • Object
show all
Defined in:
lib/net/nntp/request.rb

Overview

RFC 3977

Generates a ‘MODE READER’ command.

Valid Responses: PostingAllowed, PostingProhibited

Instance Method Summary collapse

Methods inherited from Request

#command, #dotstuff, #msgid_or_range, #range, #valid_response?

Constructor Details

#initializeModereader

Returns a new instance of Modereader.



211
212
213
# File 'lib/net/nntp/request.rb', line 211

def initialize()
  super 'MODE', 'READER'
end

Instance Method Details

#capabilityObject



220
221
222
# File 'lib/net/nntp/request.rb', line 220

def capability
  'mode-reader'
end