Class: Vx::Consumer::Serializer::Type
- Inherits:
-
Struct
- Object
- Struct
- Vx::Consumer::Serializer::Type
- Defined in:
- lib/vx/consumer/serializer.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
Instance Method Summary collapse
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type
6 7 8 |
# File 'lib/vx/consumer/serializer.rb', line 6 def content_type @content_type end |
Instance Method Details
#pack(&block) ⇒ Object
7 8 9 10 |
# File 'lib/vx/consumer/serializer.rb', line 7 def pack(&block) @pack = block if block_given? @pack end |
#unpack(&block) ⇒ Object
12 13 14 15 |
# File 'lib/vx/consumer/serializer.rb', line 12 def unpack(&block) @unpack = block if block_given? @unpack end |