struct NNTP::Context
- NNTP::Context
- Struct
- Value
- Object
Overview
Struct to hold the current group and article header information
Defined in:
nntp/context.crConstructors
Instance Method Summary
- #article : Header | Nil
- #article=(article : Header | Nil)
-
#article?
Will return
true
if#article_num
is not nil and not 0 -
#article_num : Int64
Will return the current article number.
-
#article_num?
Will return
true
if#article_num
is not nil and not 0 - #group : Group | Nil
- #group=(group : Group | Nil)
-
#group?
Will return
true
if#group
is not nil - #group_name : String
-
#message_id : String
Will return the current article message id.
-
#message_id?
Will return
true
if#article_num
is not nil
Constructor Detail
Instance Method Detail
def article_num : Int64
#
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
def message_id : String
#
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"