module NNTP::Connection::Groups
Direct including types
Defined in:
nntp/connection/groups.crInstance Method Summary
-
#article_ids
Will fetch a list of the article numbers in the current group
-
#group_article_ids(group)
Will fetch a list of the article numbers in the provided group
-
#group_info(group) : NNTP::Context::Group
Will fetch the requested group and return a
Group
tuple. -
#groups : Array(String)
Fetch all groups
- #list_active(*args, **options)
- #list_active(*args, **options, &)
- #list_active_times(*args, **options)
- #list_active_times(*args, **options, &)
- #list_distrib_pats(*args, **options)
- #list_distrib_pats(*args, **options, &)
- #list_distributions(*args, **options)
- #list_distributions(*args, **options, &)
- #list_newsgroups(*args, **options)
- #list_newsgroups(*args, **options, &)
- #list_overview_fmt(*args, **options)
- #list_overview_fmt(*args, **options, &)
- #list_subscriptions(*args, **options)
- #list_subscriptions(*args, **options, &)
-
#with_group(group, &)
Will set the current group to provided group and yield
self
to provided blockclient.with_group("alt.binaries.cbt") do |c| # Perform actions within the context of group alt.binaries.cbt end
Instance Method Detail
def group_info(group) : NNTP::Context::Group
#
Will fetch the requested group and return a Group
tuple. If no group is
found, it will raise a NNTP::Error::NoSuchGroup
error.
client.group_info "alt.binaries.cbt" # => {name: "alt.binaries.cbt", total: 56894558, first: 15495, last: 56910052}
def with_group(group, &)
#
Will set the current group to provided group and yield self
to provided block
client.with_group("alt.binaries.cbt") do |c|
# Perform actions within the context of group alt.binaries.cbt
end