Class: Mercury::WireSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/mercury/wire_serializer.rb

Instance Method Summary collapse

Instance Method Details

#read(bytes) ⇒ Object



11
12
13
# File 'lib/mercury/wire_serializer.rb', line 11

def read(bytes)
  read_json(bytes)
end

#write(struct_or_hash) ⇒ Object

TODO: DRY with hyperion once we know more



7
8
9
# File 'lib/mercury/wire_serializer.rb', line 7

def write(struct_or_hash)
  write_json(struct_or_hash)
end