class Vx::Common::AMQP::Formatter::Format
Attributes
content_type[R]
Public Class Methods
new(content_type)
click to toggle source
# File lib/vx/common/amqp/formatter.rb, line 16 def initialize(content_type) @content_type = content_type end
Public Instance Methods
pack(&block)
click to toggle source
# File lib/vx/common/amqp/formatter.rb, line 20 def pack(&block) @pack = block if block_given? @pack end
unpack(&block)
click to toggle source
# File lib/vx/common/amqp/formatter.rb, line 25 def unpack(&block) @unpack = block if block_given? @unpack end