Class: Tcat::Configuration
- Inherits:
-
Object
- Object
- Tcat::Configuration
- Defined in:
- lib/tcat/configuration.rb
Overview
Configuration class handles settings for Tcat
Instance Attribute Summary collapse
-
#secret_key ⇒ Object
T-Cat API credentials (used by Tcat::Query).
-
#secret_string ⇒ Object
T-Cat API credentials (used by Tcat::Query).
-
#worker_token ⇒ Object
Cloudflare Worker proxy settings (used by Tcat::WorkerClient) Both are optional; explicit constructor args take precedence.
-
#worker_url ⇒ Object
Cloudflare Worker proxy settings (used by Tcat::WorkerClient) Both are optional; explicit constructor args take precedence.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 |
# File 'lib/tcat/configuration.rb', line 13 def initialize @secret_string = nil @secret_key = nil @worker_url = nil @worker_token = nil end |
Instance Attribute Details
#secret_key ⇒ Object
T-Cat API credentials (used by Tcat::Query)
7 8 9 |
# File 'lib/tcat/configuration.rb', line 7 def secret_key @secret_key end |
#secret_string ⇒ Object
T-Cat API credentials (used by Tcat::Query)
7 8 9 |
# File 'lib/tcat/configuration.rb', line 7 def secret_string @secret_string end |
#worker_token ⇒ Object
Cloudflare Worker proxy settings (used by Tcat::WorkerClient) Both are optional; explicit constructor args take precedence.
11 12 13 |
# File 'lib/tcat/configuration.rb', line 11 def worker_token @worker_token end |
#worker_url ⇒ Object
Cloudflare Worker proxy settings (used by Tcat::WorkerClient) Both are optional; explicit constructor args take precedence.
11 12 13 |
# File 'lib/tcat/configuration.rb', line 11 def worker_url @worker_url end |