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
-
#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
25 26 27 28 29 |
# 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.
16 17 18 |
# File 'lib/octokit/client/feeds.rb', line 16 def feeds get 'feeds' end |