Class: Velix::Config
- Inherits:
-
Data
- Object
- Data
- Velix::Config
- Defined in:
- lib/velix/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
-
#max_retries ⇒ Object
readonly
Returns the value of attribute max_retries.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(api_url:, api_key:, timeout: 30, max_retries: 3) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(api_url:, api_key:, timeout: 30, max_retries: 3) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/velix/config.rb', line 5 def initialize(api_url:, api_key:, timeout: 30, max_retries: 3) super end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key
4 5 6 |
# File 'lib/velix/config.rb', line 4 def api_key @api_key end |
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url
4 5 6 |
# File 'lib/velix/config.rb', line 4 def api_url @api_url end |
#max_retries ⇒ Object (readonly)
Returns the value of attribute max_retries
4 5 6 |
# File 'lib/velix/config.rb', line 4 def max_retries @max_retries end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout
4 5 6 |
# File 'lib/velix/config.rb', line 4 def timeout @timeout end |