module Aws::Lex::Conversation::Spec::Matchers

Public Instance Methods

build_event(input) click to toggle source

:nocov:

# File lib/aws/lex/conversation/spec/matchers.rb, line 11
def build_event(input)
  case input
  when Aws::Lex::Conversation
    input.lex.to_lex
  when Hash
    input
  else
    raise ArgumentError, \
          'expected instance of Aws::Lex::Conversation ' \
          "or Hash, got: #{input.inspect}"
  end
end