Sha256: d11677269c1eef8e52edcb7f40bbdc818b0bdc50451fa9f676bbdafb094e3546

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

require_relative "podcast_index/version"
require "active_support/configurable"
require "active_support/core_ext/string/inflections"
require "json"

require_relative "podcast_index/api/request"

require_relative "podcast_index/api/categories"
require_relative "podcast_index/api/episodes"
require_relative "podcast_index/api/podcasts"
require_relative "podcast_index/api/recent"
require_relative "podcast_index/api/search"
require_relative "podcast_index/api/stats"
require_relative "podcast_index/api/value"
require_relative "podcast_index/category"
require_relative "podcast_index/episode"
require_relative "podcast_index/podcast"
require_relative "podcast_index/soundbite"
require_relative "podcast_index/stats"
require_relative "podcast_index/value"

module PodcastIndex
  include ActiveSupport::Configurable

  config_accessor :api_key, :api_secret, :base_url

  class Error < StandardError; end
  class PodcastNotFound < Error; end
  class CategoryNotFound < Error; end

  def self.configure
    self.base_url = "https://api.podcastindex.org/api/1.0".freeze
    super
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
podcast_index-0.5.0 lib/podcast_index.rb
podcast_index-0.4.0 lib/podcast_index.rb