Class: AirbyteRuby::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/airbyte_ruby/configuration.rb

Overview

Configuration class for AirbyteRuby

Instance Method Summary collapse

Instance Method Details

#endpointString

The endpoint that Airbyte is running on /!\ Must include the trailing slash Defaults to localhost:8006/

Returns:

  • (String)


16
17
18
19
20
21
# File 'lib/airbyte_ruby/configuration.rb', line 16

config_accessor :endpoint do
  endpoint = ENV.fetch("AIRBYTE_ENDPOINT", "http://localhost:8006/")
  endpoint += "/" if endpoint[-1] != "/"

  endpoint
end