Sha256: 4ae2dcae8248db7b3d55e7c1c32cce35ad25d936b791a53adfe4e9ad323c0c3b
Contents?: true
Size: 611 Bytes
Versions: 8
Compression:
Stored size: 611 Bytes
Contents
module Foobara module CommandConnectors class Serializer < Value::Transformer class << self def serializer_from_symbol(symbol) Util.descendants(Serializer).find do |klass| name = Util.non_full_name(klass) name = name.gsub(/Serializer$/, "") name = Util.underscore(name) symbol.to_s == name end end end def request declaration_data end def initialize(declaration_data = {}) super end def transform(object) serialize(object) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems