Sha256: 83e8063465604428aee8d30c33db4c48a6a13ea68f4d2fcb2b6533e10548872b

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

module PodcastIndex
  module Api
    class Value
      extend Request

      class << self
        def by_feed_id(id:)
          response = get("/value/byfeedid", id: id)
          JSON.parse(response.body)
        end

        def by_feed_url(url:)
          response = get("/value/byfeedurl", url: url)
          JSON.parse(response.body)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
podcast_index-0.5.0 lib/podcast_index/api/value.rb
podcast_index-0.4.0 lib/podcast_index/api/value.rb
podcast_index-0.3.0 lib/podcast_index/api/value.rb
podcast_index-0.2.1 lib/podcast_index/api/value.rb
podcast_index-0.2.0 lib/podcast_index/api/value.rb