Class: ActiveAgent::Providers::Mock::Options

Inherits:
Common::BaseModel show all
Defined in:
lib/active_agent/providers/mock/options.rb

Overview

Configuration options for the Mock provider.

This provider doesn’t make real API calls, so most options are unused. Included for consistency with other providers.

Instance Method Summary collapse

Methods inherited from Common::BaseModel

#<=>, #==, attribute, #deep_compact, #deep_dup, delegate_attributes, drop_attributes, inherited, #inspect, keys, #merge!, required_attributes, #serialize, #to_h, #to_hash

Constructor Details

#initialize(kwargs = {}) ⇒ Options

Returns a new instance of Options.



19
20
21
22
# File 'lib/active_agent/providers/mock/options.rb', line 19

def initialize(kwargs = {})
  kwargs = kwargs.deep_symbolize_keys if kwargs.respond_to?(:deep_symbolize_keys)
  super(**deep_compact(kwargs))
end

Instance Method Details

#extra_headersObject



24
25
26
# File 'lib/active_agent/providers/mock/options.rb', line 24

def extra_headers
  {}
end