Module: PodcastIndex
- Defined in:
- lib/podcast_index/podcast.rb,
lib/podcast_index.rb,
lib/podcast_index/stats.rb,
lib/podcast_index/value.rb,
lib/podcast_index/episode.rb,
lib/podcast_index/version.rb,
lib/podcast_index/category.rb,
lib/podcast_index/api/stats.rb,
lib/podcast_index/api/value.rb,
lib/podcast_index/soundbite.rb,
lib/podcast_index/api/recent.rb,
lib/podcast_index/api/search.rb,
lib/podcast_index/api/request.rb,
lib/podcast_index/api/episodes.rb,
lib/podcast_index/api/podcasts.rb,
lib/podcast_index/api/categories.rb
Overview
rubocop:disable Metrics/ParameterLists
Defined Under Namespace
Modules: Api
Classes: Category, CategoryNotFound, Episode, Error, Podcast, PodcastNotFound, Soundbite, Stats, Value
Constant Summary
collapse
- VERSION =
"0.5.1".freeze
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
36
|
# File 'lib/podcast_index.rb', line 36
def self.api_key = config.api_key
|
.api_secret ⇒ Object
37
|
# File 'lib/podcast_index.rb', line 37
def self.api_secret = config.api_secret
|
.base_url ⇒ Object
38
|
# File 'lib/podcast_index.rb', line 38
def self.base_url = config.base_url
|
.config ⇒ Object
32
33
34
|
# File 'lib/podcast_index.rb', line 32
def self.config
@config ||= ActiveSupport::OrderedOptions.new
end
|
27
28
29
30
|
# File 'lib/podcast_index.rb', line 27
def self.configure
config.base_url = "https://api.podcastindex.org/api/1.0".freeze
yield config
end
|