Sha256: 312f09da190c7bec28968108c7d53e083021c54e65074d2e5f858240ad228b11
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
require "fastly-rails/engine" require "fastly-rails/client" require "fastly-rails/configuration" require "fastly-rails/errors" module FastlyRails attr_reader :client, :configuration def configuration @configuration ||= Configuration.new end def configure yield configuration if block_given? end def client raise NoAuthCredentialsProvidedError unless configuration.authenticatable? @client ||= Client.new( :api_key => configuration.api_key, :user => configuration.user, :password => configuration.password, ) end extend self end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastly-rails-0.1.0 | lib/fastly-rails.rb |