Sha256: 524d3bb8b7a54d9d1efed4c633bfaf2ca7d948ced8868a1c546f6b534bb8785b
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
module PlayWhe class Fetcher include Util attr_reader :http_adapter, :url def initialize(http_adapter, url) @http_adapter = http_adapter @url = url end def get(year:, month: nil) y = normalize_year(year) m = normalize_month(month) response = http_adapter.post(url, year: y, month: m) if response.ok? response.body else raise BadResponseError, response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
playwhe-0.2.0 | lib/playwhe/fetcher.rb |