Class: HighLevel::Configuration
- Inherits:
-
Data
- Object
- Data
- HighLevel::Configuration
- Defined in:
- lib/high_level/configuration.rb
Overview
Immutable, per-client configuration. Every collaborator a Client needs — credentials, base URL, session storage, instrumenter — is supplied here; there is no global mutable state.
Instance Attribute Summary collapse
-
#agency_access_token ⇒ Object
readonly
Returns the value of attribute agency_access_token.
-
#api_version ⇒ Object
readonly
Returns the value of attribute api_version.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
readonly
Returns the value of attribute client_secret.
-
#instrumenter ⇒ Object
readonly
Returns the value of attribute instrumenter.
-
#location_access_token ⇒ Object
readonly
Returns the value of attribute location_access_token.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#private_integration_token ⇒ Object
readonly
Returns the value of attribute private_integration_token.
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
-
#session_storage ⇒ Object
readonly
Returns the value of attribute session_storage.
Instance Method Summary collapse
-
#initialize(api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil) ⇒ Configuration
Returns a new instance of Configuration.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/high_level/configuration.rb', line 46 def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end |
Instance Attribute Details
#agency_access_token ⇒ Object (readonly)
Returns the value of attribute agency_access_token
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#api_version ⇒ Object (readonly)
Returns the value of attribute api_version
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#client_secret ⇒ Object (readonly)
Returns the value of attribute client_secret
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#instrumenter ⇒ Object (readonly)
Returns the value of attribute instrumenter
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#location_access_token ⇒ Object (readonly)
Returns the value of attribute location_access_token
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#private_integration_token ⇒ Object (readonly)
Returns the value of attribute private_integration_token
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#redirect_uri ⇒ Object (readonly)
Returns the value of attribute redirect_uri
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |
#session_storage ⇒ Object (readonly)
Returns the value of attribute session_storage
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/high_level/configuration.rb', line 32 Configuration = Data.define( :api_version, :base_url, :private_integration_token, :agency_access_token, :location_access_token, :client_id, :client_secret, :redirect_uri, :session_storage, :logger, :instrumenter ) do # @see Configuration the attribute list for every keyword argument def initialize( api_version: "2021-07-28", base_url: "https://services.leadconnectorhq.com", private_integration_token: nil, agency_access_token: nil, location_access_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil, session_storage: Storage::Memory.new, logger: nil, instrumenter: nil ) super end end |