Sha256: 32013f2371d41c344e1b72ddc40934edaa462f5cc8b55995e894cf75d4dadc7b
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
require 'quick_travel/adapter' module QuickTravel class Configuration attr_accessor :url, :access_key, :version, :extra_headers def url=(url) @url = url QuickTravel::Adapter.base_uri url end attr_writer :access_key end def self.configure yield QuickTravel.config end def self.config @config ||= QuickTravel::Configuration.new end def self.url config.url end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quicktravel_client-4.7.0 | lib/quick_travel/config.rb |
quicktravel_client-4.6.0 | lib/quick_travel/config.rb |
quicktravel_client-4.5.0 | lib/quick_travel/config.rb |