Class: Net::NNTP::GroupListResponse

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

Direct Known Subclasses

ListInformationFollows, NewgroupsResponse

Instance Attribute Summary collapse

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?, #multiline?, #needs_article?

Constructor Details

#initialize(request, code, message) ⇒ GroupListResponse

Returns a new instance of GroupListResponse.



273
274
275
276
# File 'lib/net/nntp/response.rb', line 273

def initialize(request, code, message)
  @list = []
  super request, code, message, false, true
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



271
272
273
# File 'lib/net/nntp/response.rb', line 271

def list
  @list
end

#rawObject (readonly)

Returns the value of attribute raw.



271
272
273
# File 'lib/net/nntp/response.rb', line 271

def raw
  @raw
end