Class: Velix::Config

Inherits:
Data
  • Object
show all
Defined in:
lib/velix/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (readonly)

Returns the value of attribute api_key

Returns:

  • (Object)

    the current value of api_key



4
5
6
# File 'lib/velix/config.rb', line 4

def api_key
  @api_key
end

#api_urlObject (readonly)

Returns the value of attribute api_url

Returns:

  • (Object)

    the current value of api_url



4
5
6
# File 'lib/velix/config.rb', line 4

def api_url
  @api_url
end

#max_retriesObject (readonly)

Returns the value of attribute max_retries

Returns:

  • (Object)

    the current value of max_retries



4
5
6
# File 'lib/velix/config.rb', line 4

def max_retries
  @max_retries
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



4
5
6
# File 'lib/velix/config.rb', line 4

def timeout
  @timeout
end