Sha256: 13a106ca6cfeb770432c7ce293689d7b393713f8161da810225264116b16b213
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
module Unsplash # :nodoc: class Configuration # :nodoc: attr_accessor :application_access_key attr_accessor :application_secret attr_accessor :application_redirect_uri attr_accessor :logger attr_accessor :utm_source attr_writer :test def initialize @test = true @logger = Logger.new(STDOUT) end def test? !!@test end def application_id=(key) logger.warn "Configuring application_id is deprecated. Use application_access_key." self.application_access_key = key end def application_id application_access_key end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unsplash-1.5.5 | lib/unsplash/configuration.rb |
unsplash-1.5.4 | lib/unsplash/configuration.rb |
unsplash-1.5.3 | lib/unsplash/configuration.rb |