123456789_123456789_123456789_123456789_123456789_

Module: Octokit::Client::Feeds

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/octokit/client/feeds.rb

Overview

Methods for the Feeds API

Instance Method Summary

Instance Method Details

#feed(name, options = {}) ⇒ Feed

Get a Feed by name

Parameters:

  • name (Symbol, String)

    Name of feed to retrieve.

Returns:

  • (Feed)

    Parsed feed in the format returned by the configured parser.

[ GitHub ]

  
# File 'lib/octokit/client/feeds.rb', line 25

def feed(name, options = {})
  if rel = feeds._links[name]
    get rel.href, accept: rel.type, options: options
  end
end

#feedsArray<Sawyer::Resource>

List Feeds

The feeds returned depend on authentication, see the GitHub API docs for more information.

Returns:

  • (Array<Sawyer::Resource>)

    list of feeds

See Also:

[ GitHub ]

  
# File 'lib/octokit/client/feeds.rb', line 16

def feeds
  get 'feeds'
end