Sha256: d2ca8fd282f6b2590d22444b09ec652bbb4761782e96756a10fcb48c4b73cb87

Contents?: true

Size: 542 Bytes

Versions: 18

Compression:

Stored size: 542 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 transform(object)
        serialize(object)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foobara-0.0.18 projects/command_connectors/src/serializer.rb
foobara-0.0.17 projects/command_connectors/src/serializer.rb
foobara-0.0.16 projects/command_connectors/src/serializer.rb
foobara-0.0.15 projects/command_connectors/src/serializer.rb
foobara-0.0.14 projects/command_connectors/src/serializer.rb
foobara-0.0.13 projects/command_connectors/src/serializer.rb
foobara-0.0.12 projects/command_connectors/src/serializer.rb
foobara-0.0.11 projects/command_connectors/src/serializer.rb
foobara-0.0.10 projects/command_connectors/src/serializer.rb
foobara-0.0.9 projects/command_connectors/src/serializer.rb
foobara-0.0.8 projects/command_connectors/src/serializer.rb
foobara-0.0.7 projects/command_connectors/src/serializer.rb
foobara-0.0.6 projects/command_connectors/src/serializer.rb
foobara-0.0.5 projects/command_connectors/src/serializer.rb
foobara-0.0.4 projects/command_connectors/src/serializer.rb
foobara-0.0.3 projects/command_connectors/src/serializer.rb
foobara-0.0.2 projects/command_connectors/src/serializer.rb
foobara-0.0.1 projects/command_connectors/src/serializer.rb