Sha256: 925f15942a72c9006d64e5ca19bb41769185ba7b344f4d71482d9c511c084760
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
module BunnyCdn class Configuration attr_accessor :storageZone, :region, :accessKey, :apiKey # Sets the configuration variables upon calling BunnyCdn::Configuration.new def initialize @storageZone = nil @region = nil # Options are: eu, ny, la or sg (Asia) @accessKey = nil @apiKey = nil end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield(configuration) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bunny_cdn-1.2.0 | lib/bunny_cdn/configuration.rb |
bunny_cdn-1.1.1 | lib/bunny_cdn/configuration.rb |