Module: TestBench::Telemetry::Controls::Handler::Method

Defined in:
lib/test_bench/telemetry/controls/handler.rb

Class Method Summary collapse

Class Method Details

.example(event_type = nil) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/test_bench/telemetry/controls/handler.rb', line 43

def self.example(event_type=nil)
  event_type ||= Event::Example.event_type

  event_type_method_cased = TestBench::Telemetry::Event::Type.method_cased(event_type)

  :"handle_#{event_type_method_cased}"
end

.other_exampleObject



51
52
53
54
55
# File 'lib/test_bench/telemetry/controls/handler.rb', line 51

def self.other_example
  event_type = Event::OtherExample.event_type

  example(event_type)
end