Ch4s3/ink_stream

View on GitHub
app/components/ny_times/client.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module NyTimes
  # HTTParty client for the NewYork Times that takes an article path
  # and get's the text of the article
  class Client < GenericClient
    base_uri 'nytimes.com'

    private

    def call_builder
      NyTimes::Builder.new(@response_body, @path, @article_id).article
    end
  end
end