lib/velocity.rb in velocity_client_ruby-0.1.0 vs lib/velocity.rb in velocity_client_ruby-0.1.1

- old
+ new

@@ -1,14 +1,26 @@ +require "velocity/api" +require "velocity/contributor" +require "dotenv/load" + module Velocity class << self attr_accessor :configuration def configure @configuration ||= Configuration.new yield(configuration) end + + def configuration + @configuration ||= Configuration.new + end end class Configuration attr_accessor :api_token + + def api_token + @api_token || ENV["VELOCITY_API_TOKEN"] + end end end