Module: Messaging::Message::Import
- Defined in:
- lib/messaging/message/import.rb
Constant Summary collapse
- Error =
Class.new(RuntimeError)
Class Method Summary collapse
Class Method Details
.call(message_data, message_class) ⇒ Object
6 7 8 9 10 |
# File 'lib/messaging/message/import.rb', line 6 def self.call(, ) raise Error, "Message class #{} doesn't match MessageData type #{.type.inspect}" unless .(.type) ::Transform::Read.(, :message_data, ) end |