Module: Octokit::Client::Feeds

Included in:
Octokit::Client
Defined in:
lib/octokit/client/feeds.rb

Overview

Methods for the Feeds API

Instance Method Summary collapse

Instance Method Details

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

Get a Feed by name


25
26
27
28
29
# 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.


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

def feeds
  get "feeds"
end