Class: Net::NNTP::NewnewsResponse

Inherits:
ArticleBaseResponse show all
Includes:
BodyBaseResponse
Defined in:
lib/net/nntp/response.rb

Overview

Code: 230

Instance Attribute Summary collapse

Attributes inherited from ArticleBaseResponse

#message_id, #number, #raw

Attributes inherited from Response

#code, #message, #request

Instance Method Summary collapse

Methods included from BodyBaseResponse

#body, #body=

Methods inherited from ArticleBaseResponse

#initialize

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::ArticleBaseResponse

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



445
446
447
# File 'lib/net/nntp/response.rb', line 445

def list
  @list
end

Instance Method Details

#parse_bodyObject



446
447
448
# File 'lib/net/nntp/response.rb', line 446

def parse_body
  @list = @raw.split(/\r?\n/)
end