lib/plausible_api.rb in plausible_api-0.2 vs lib/plausible_api.rb in plausible_api-0.3

- old
+ new

@@ -1,7 +1,20 @@ require "plausible_api/version" require "plausible_api/client" +require "plausible_api/configuration" module PlausibleApi class Error < StandardError; end + + class ConfigurationError < StandardError; end + # Your code goes here... + class << self + def configuration + @configuration ||= Configuration.new + end + + def configure + yield(configuration) + end + end end