Sha256: 4eb82b9936a70c8331bade66deeb5fdf6a64dce75e97788e956d2f946b062d28
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
# frozen_string_literal: true require 'uri' module Kovid # Prepares base URI before requests class UriBuilder attr_reader :path BASE_URI = 'corona.lmao.ninja' def initialize(path = '') @path = path end def url URI::HTTPS.build(host: BASE_URI, path: path).to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kovid-0.6.6 | lib/kovid/uri_builder.rb |