Sha256: 7d90a3e825d0e8be0084cf1eff162ab2abec8c79496210e712436251d6eb9301

Contents?: true

Size: 822 Bytes

Versions: 5

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

module Immoscout
  class Configuration
    include ActiveSupport::Configurable
    config_accessor(:consumer_key) { ENV["IMMOSCOUT_CONSUMER_KEY"] }
    config_accessor(:consumer_secret) { ENV["IMMOSCOUT_CONSUMER_SECRET"] }

    config_accessor(:oauth_token) { ENV["IMMOSCOUT_OAUTH_TOKEN"] }
    config_accessor(:oauth_token_secret) { ENV["IMMOSCOUT_OAUTH_TOKEN_SECRET"] }

    config_accessor(:use_sandbox) { false }

    config_accessor(:api_version) { "v1.0" }

    config_accessor(:user_name) { 'me' }

    config_accessor(:api_url_live) do
      "https://rest.immobilienscout24.de/" \
      "restapi/api/offer/#{api_version}"
    end
    config_accessor(:api_url_sandbox) do
      "https://rest.sandbox-immobilienscout24.de/" \
      "restapi/api/offer/#{api_version}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
immoscout-1.3.1 lib/immoscout/configuration.rb
immoscout-1.3.0 lib/immoscout/configuration.rb
immoscout-1.2.0 lib/immoscout/configuration.rb
immoscout-1.1.0 lib/immoscout/configuration.rb
immoscout-1.0.0 lib/immoscout/configuration.rb