Class: Immobilienscout24::Configuration
- Inherits:
-
Object
- Object
- Immobilienscout24::Configuration
- Defined in:
- lib/immobilienscout24/configuration.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#faraday_adapter ⇒ Object
Returns the value of attribute faraday_adapter.
-
#faraday_connection ⇒ Object
Returns the value of attribute faraday_connection.
-
#faraday_logger ⇒ Object
Returns the value of attribute faraday_logger.
-
#live_url ⇒ Object
Returns the value of attribute live_url.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
-
#sandbox_url ⇒ Object
Returns the value of attribute sandbox_url.
Instance Method Summary collapse
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
13 14 15 |
# File 'lib/immobilienscout24/configuration.rb', line 13 def api_version @api_version end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
4 5 6 |
# File 'lib/immobilienscout24/configuration.rb', line 4 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
5 6 7 |
# File 'lib/immobilienscout24/configuration.rb', line 5 def consumer_secret @consumer_secret end |
#content_type ⇒ Object
Returns the value of attribute content_type.
6 7 8 |
# File 'lib/immobilienscout24/configuration.rb', line 6 def content_type @content_type end |
#faraday_adapter ⇒ Object
Returns the value of attribute faraday_adapter.
8 9 10 |
# File 'lib/immobilienscout24/configuration.rb', line 8 def faraday_adapter @faraday_adapter end |
#faraday_connection ⇒ Object
Returns the value of attribute faraday_connection.
7 8 9 |
# File 'lib/immobilienscout24/configuration.rb', line 7 def faraday_connection @faraday_connection end |
#faraday_logger ⇒ Object
Returns the value of attribute faraday_logger.
9 10 11 |
# File 'lib/immobilienscout24/configuration.rb', line 9 def faraday_logger @faraday_logger end |
#live_url ⇒ Object
Returns the value of attribute live_url.
11 12 13 |
# File 'lib/immobilienscout24/configuration.rb', line 11 def live_url @live_url end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
10 11 12 |
# File 'lib/immobilienscout24/configuration.rb', line 10 def sandbox @sandbox end |
#sandbox_url ⇒ Object
Returns the value of attribute sandbox_url.
12 13 14 |
# File 'lib/immobilienscout24/configuration.rb', line 12 def sandbox_url @sandbox_url end |
Instance Method Details
#api_url ⇒ Object
32 33 34 35 |
# File 'lib/immobilienscout24/configuration.rb', line 32 def api_url return sandbox_url if sandbox live_url end |
#build_extension ⇒ Object
49 50 51 |
# File 'lib/immobilienscout24/configuration.rb', line 49 def build_extension @build_extension ||= ->(builder, ){} end |
#logging? ⇒ Boolean
53 54 55 |
# File 'lib/immobilienscout24/configuration.rb', line 53 def logging? faraday_logger && !faraday_logger.empty? end |
#request_strategy ⇒ Object
28 29 30 |
# File 'lib/immobilienscout24/configuration.rb', line 28 def request_strategy @request_strategy ||= Immobilienscout24::Api::Request::Json end |