Class: Coronet::MessageFormat::Base

Inherits:
Object
  • Object
show all
Includes:
Contractual::Interface
Defined in:
lib/coronet/message_format/base.rb

Direct Known Subclasses

XmlMessageFormat, YamlMessageFormat

Instance Method Summary collapse

Instance Method Details

#transform(message, outgoing_format) ⇒ Object



10
11
12
13
# File 'lib/coronet/message_format/base.rb', line 10

def transform(message, outgoing_format)
  unpacked = unpack(message)
  outgoing_format.pack(unpacked)
end