Class: AmqpUtils::Serialization::Json

Inherits:
Base
  • Object
show all
Defined in:
lib/amqp_utils/serialization.rb

Class Method Summary collapse

Methods inherited from Base

content_type

Class Method Details

.deserialize(message) ⇒ Object



47
48
49
# File 'lib/amqp_utils/serialization.rb', line 47

def self.deserialize(message)
  ::JSON.parse(message)
end

.serialize(message) ⇒ Object



51
52
53
# File 'lib/amqp_utils/serialization.rb', line 51

def self.serialize(message)
  ::JSON.generate(message)
end