Class: Vx::Lib::Consumer::Serializer::Type

Inherits:
Struct
  • Object
show all
Defined in:
lib/vx/lib/consumer/serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



7
8
9
# File 'lib/vx/lib/consumer/serializer.rb', line 7

def content_type
  @content_type
end

Instance Method Details

#pack(&block) ⇒ Object



8
9
10
11
# File 'lib/vx/lib/consumer/serializer.rb', line 8

def pack(&block)
  @pack = block if block_given?
  @pack
end

#unpack(&block) ⇒ Object



13
14
15
16
# File 'lib/vx/lib/consumer/serializer.rb', line 13

def unpack(&block)
  @unpack = block if block_given?
  @unpack
end