Class: AmqpUtils::Serialization::Base

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

Direct Known Subclasses

Json, MsgPack

Class Method Summary collapse

Class Method Details

.content_type(*content_types) ⇒ Object



23
24
25
26
27
# File 'lib/amqp_utils/serialization.rb', line 23

def self.content_type(*content_types)
  content_types.each do |ctype|
    AmqpUtils::Serialization.serializers[ctype] = self
  end
end