Class: Unsplash::Configuration
- Inherits:
-
Object
- Object
- Unsplash::Configuration
- Defined in:
- lib/unsplash/configuration.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#application_access_key ⇒ Object
Returns the value of attribute application_access_key.
-
#application_redirect_uri ⇒ Object
Returns the value of attribute application_redirect_uri.
-
#application_secret ⇒ Object
Returns the value of attribute application_secret.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#test ⇒ Object
writeonly
Sets the attribute test.
-
#utm_source ⇒ Object
Returns the value of attribute utm_source.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #test? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/unsplash/configuration.rb', line 10 def initialize @test = true @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#application_access_key ⇒ Object
Returns the value of attribute application_access_key.
3 4 5 |
# File 'lib/unsplash/configuration.rb', line 3 def application_access_key @application_access_key end |
#application_redirect_uri ⇒ Object
Returns the value of attribute application_redirect_uri.
5 6 7 |
# File 'lib/unsplash/configuration.rb', line 5 def application_redirect_uri @application_redirect_uri end |
#application_secret ⇒ Object
Returns the value of attribute application_secret.
4 5 6 |
# File 'lib/unsplash/configuration.rb', line 4 def application_secret @application_secret end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/unsplash/configuration.rb', line 6 def logger @logger end |
#test=(value) ⇒ Object (writeonly)
Sets the attribute test
8 9 10 |
# File 'lib/unsplash/configuration.rb', line 8 def test=(value) @test = value end |
#utm_source ⇒ Object
Returns the value of attribute utm_source.
7 8 9 |
# File 'lib/unsplash/configuration.rb', line 7 def utm_source @utm_source end |
Instance Method Details
#test? ⇒ Boolean
15 16 17 |
# File 'lib/unsplash/configuration.rb', line 15 def test? !!@test end |