Module: Aws::Lex::Conversation::Spec::Matchers
- Extended by:
- RSpec::Matchers::DSL
- Defined in:
- lib/aws/lex/conversation/spec/matchers.rb
Instance Method Summary collapse
-
#build_event(input) ⇒ Object
:nocov:.
Instance Method Details
#build_event(input) ⇒ Object
:nocov:
11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |