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
-
#feed(name, options = {}) ⇒ Feed
Get a Feed by name.
-
#feeds ⇒ Array<Sawyer::Resource>
List Feeds.
Instance Method Details
#feed(name, options = {}) ⇒ Feed
Get a Feed by name
# File 'lib/octokit/client/feeds.rb', line 25
def feed(name, = {}) if rel = feeds._links[name] get rel.href, accept: rel.type, options: end end
#feeds ⇒ Array
<Sawyer::Resource
>
List Feeds
The feeds returned depend on authentication, see the GitHub API docs for more information.
# File 'lib/octokit/client/feeds.rb', line 16
def feeds get 'feeds' end