Sha256: dbaacf86fb1a0e366ce3c9963a02ce6bb20231393afe99b068ebdd2574958878

Contents?: true

Size: 344 Bytes

Versions: 32

Compression:

Stored size: 344 Bytes

Contents

require_relative 'serializer'

module Inferno
  module Web
    module Serializers
      class Input < Serializer
        identifier :name

        field :label, if: :field_present?
        field :description, if: :field_present?
        field :required, if: :field_present?
        field :value, if: :field_present?
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
inferno_core-0.3.5 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.4 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.3 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.2 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.0 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.3.0.rc1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.2.0 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.2.0.rc4 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.2.0.rc3 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.2.0.rc2 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.2.0.rc1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.4.pre lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.3 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.3.pre2 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.3.pre lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.2 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.2.pre lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.1.1.pre lib/inferno/apps/web/serializers/input.rb