Class: Mayak::Codec::FromPair
- Inherits:
-
T::Struct
- Object
- T::Struct
- Mayak::Codec::FromPair
- Extended by:
- T::Generic, T::Helpers, T::Sig
- Includes:
- Mayak::Codec
- Defined in:
- lib/mayak/codec.rb
Constant Summary collapse
- Entity =
type_member- Protocol =
type_member
Instance Method Summary collapse
Methods included from Mayak::Codec
Instance Method Details
#decode(response) ⇒ Object
65 66 67 |
# File 'lib/mayak/codec.rb', line 65 def decode(response) decoder.decode(response) end |
#encode(entity) ⇒ Object
56 57 58 |
# File 'lib/mayak/codec.rb', line 56 def encode(entity) encoder.encode(entity) end |