Sha256: 94259c9349999ce0a4868f670bccb52c3f6be54f07f453f9b461bcd10c01a981

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

module Timezone
  module Lookup
    class Basic
      attr_reader :config

      def initialize(config)
        @config = config
      end

      def client
        @client ||= config.http_client.new(config.protocol, config.url)
      end

      def lookup(lat, lng)
        raise NoMethodError, 'lookup is not implemented'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
timezone-0.3.9 lib/timezone/lookup/basic.rb
timezone-0.3.8 lib/timezone/lookup/basic.rb
timezone-0.3.7 lib/timezone/lookup/basic.rb