Sha256: a7d5e4e3dbc2d5e43f13e33ce503f536dfe0b96000a85bd0f2c7f7476252d5ca

Contents?: true

Size: 281 Bytes

Versions: 59

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

require 'uri'

module Kovid
  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

59 entries across 59 versions & 1 rubygems

Version Path
kovid-0.7.1 lib/kovid/uri_builder.rb
kovid-0.7.0 lib/kovid/uri_builder.rb
kovid-0.6.15 lib/kovid/uri_builder.rb
kovid-0.6.14 lib/kovid/uri_builder.rb
kovid-0.6.13 lib/kovid/uri_builder.rb
kovid-0.6.12 lib/kovid/uri_builder.rb
kovid-0.6.11 lib/kovid/uri_builder.rb
kovid-0.6.10 lib/kovid/uri_builder.rb
kovid-0.6.9 lib/kovid/uri_builder.rb
kovid-0.6.8 lib/kovid/uri_builder.rb
kovid-0.6.7 lib/kovid/uri_builder.rb
kovid-0.6.5 lib/kovid/uri_builder.rb
kovid-0.6.4 lib/kovid/uri_builder.rb
kovid-0.6.3 lib/kovid/uri_builder.rb
kovid-0.6.2 lib/kovid/uri_builder.rb
kovid-0.6.1 lib/kovid/uri_builder.rb
kovid-0.6.0 lib/kovid/uri_builder.rb
kovid-0.5.8 lib/kovid/uri_builder.rb
kovid-0.5.7 lib/kovid/uri_builder.rb
kovid-0.5.6 lib/kovid/uri_builder.rb