Class: TestClient
- Inherits:
-
Streamdal::Client
- Object
- Streamdal::Client
- TestClient
- Defined in:
- lib/wasm_spec.rb
Constant Summary
Constants inherited from Streamdal::Client
Streamdal::Client::CounterEntry, Streamdal::Client::Metrics
Instance Attribute Summary collapse
-
#kv ⇒ Object
Returns the value of attribute kv.
Instance Method Summary collapse
-
#initialize ⇒ TestClient
constructor
Ignore rubocop warning rubocop:disable Lint/MissingSuper.
Methods inherited from Streamdal::Client
Methods included from Schemas
#_get_schema, #_handle_schema, #_set_schema
Methods included from Validation
#validate_kv_command, #validate_kv_instruction, #validate_kv_object, #validate_set_pipelines, #validate_tail_request
Methods included from Audiences
#_add_audience, #_add_audiences, #_seen_audience, #aud_to_str, #str_to_aud
Constructor Details
#initialize ⇒ TestClient
Ignore rubocop warning rubocop:disable Lint/MissingSuper
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/wasm_spec.rb', line 13 def initialize @cfg = { step_timeout: 2 } @functions = {} logger = Logger.new($stdout) logger.level = Logger::ERROR @log = logger @kv = Streamdal::KeyValue.new @hostfunc = Streamdal::HostFunc.new(@kv) end |
Instance Attribute Details
#kv ⇒ Object
Returns the value of attribute kv.
9 10 11 |
# File 'lib/wasm_spec.rb', line 9 def kv @kv end |