Class: Vx::Lib::Consumer::Serializer::Type
- Inherits:
-
Struct
- Object
- Struct
- Vx::Lib::Consumer::Serializer::Type
- Defined in:
- lib/vx/lib/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
9 10 11 |
# File 'lib/vx/lib/consumer/serializer.rb', line 9 def content_type @content_type end |
Instance Method Details
#pack(&block) ⇒ Object
10 11 12 13 |
# File 'lib/vx/lib/consumer/serializer.rb', line 10 def pack(&block) @pack = block if block_given? @pack end |
#unpack(&block) ⇒ Object
15 16 17 18 |
# File 'lib/vx/lib/consumer/serializer.rb', line 15 def unpack(&block) @unpack = block if block_given? @unpack end |