Sha256: 2ce53d6fb1ef747d3165647beca1c087724443cffa1b817f138ec27808033a0c
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
module FastlyRails class Configuration attr_reader :api_key, :user, :password, :max_age MAX_AGE_DEFAULT = '2592000' class << self def max_age_default MAX_AGE_DEFAULT end end def initialize @api_key = nil @user = nil @password = nil @max_age = self.class.max_age_default end def api_key=(val) @api_key = val end def user=(val) @user = val end def password=(val) @password = val end def max_age=(val) @max_age = val end def authenticatable? !api_key.nil? || (!user.nil? && !password.nil?) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastly-rails-0.1.0 | lib/fastly-rails/configuration.rb |