struct

NNTP::Context

Inherits Struct < Value < Object

Struct to hold the current group and article header information

Constructors

new(group : Group | Nil, article : Header | Nil)
Source

Instance methods

article
Source
article=(article : Header | Nil)
Source
article?

Will return true if article_num is not nil and not 0

Source
article_num

Will return the current article number. If no article number is set it will raise a NNTP::Error::NoArticleContext error. Check before access with article_num?

client.article_num? # => true
client.article_num  # => 56910000
Source
article_num?

Will return true if article_num is not nil and not 0

Source
group
Source
group=(group : Group | Nil)
Source
group?

Will return true if group is not nil

Source
group_name
Source
message_id

Will return the current article message id. If no article number is set it will raise a NNTP::Error::NoArticleContext error. Check before access with message_id?

client.message_id? # => true
client.message_id  # => "YwGnYrShOtJaBfSzZlTkKbBh-1587103108703@nyuu"
Source
message_id?

Will return true if article_num is not nil

Source

Nested types