Module: RubyBots::Streamable

Defined in:
lib/ruby_bots/streamable.rb

Instance Method Summary collapse

Instance Method Details

#response(input) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/ruby_bots/streamable.rb', line 3

def response(input)
  run_input_validations(input)

  raise RubyBots::InvalidInputError, { errors: @errors } if @errors.any?

  run(input)
end