Class: Unsplash::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/unsplash/configuration.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_uriObject

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_secretObject

Returns the value of attribute application_secret.


4
5
6
# File 'lib/unsplash/configuration.rb', line 4

def application_secret
  @application_secret
end

#loggerObject

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

Parameters:

  • value

    the value to set the attribute test to.


8
9
10
# File 'lib/unsplash/configuration.rb', line 8

def test=(value)
  @test = value
end

#utm_sourceObject

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

Returns:

  • (Boolean)

15
16
17
# File 'lib/unsplash/configuration.rb', line 15

def test?
  !!@test
end