module NNTP::Connection::Groups

Direct including types

Defined in:

nntp/connection/groups.cr

Instance Method Summary

Instance Method Detail

def article_ids #

Will fetch a list of the article numbers in the current group


[View source]
def group_article_ids(group) #

Will fetch a list of the article numbers in the provided group


[View source]
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}

[View source]
def groups : Array(String) #

Fetch all groups


[View source]
def list_active(*args, **options) #

[View source]
def list_active(*args, **options, &) #

[View source]
def list_active_times(*args, **options) #

[View source]
def list_active_times(*args, **options, &) #

[View source]
def list_distrib_pats(*args, **options) #

[View source]
def list_distrib_pats(*args, **options, &) #

[View source]
def list_distributions(*args, **options) #

[View source]
def list_distributions(*args, **options, &) #

[View source]
def list_newsgroups(*args, **options) #

[View source]
def list_newsgroups(*args, **options, &) #

[View source]
def list_overview_fmt(*args, **options) #

[View source]
def list_overview_fmt(*args, **options, &) #

[View source]
def list_subscriptions(*args, **options) #

[View source]
def list_subscriptions(*args, **options, &) #

[View source]
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

[View source]