Sha256: 6daa8f3066e395ed65cdec5a50e93d1ba5a1a48072de2ab11616212afa4cb940

Contents?: true

Size: 516 Bytes

Versions: 57

Compression:

Stored size: 516 Bytes

Contents

require_relative 'serializer'

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

        field :title, if: :field_present?
        field :description, if: :field_present?
        field :type, if: :field_present?
        field :default, if: :field_present?
        field :optional, if: :field_present?
        field :options, if: :field_present?
        field :locked, if: :field_present?
        field :value, if: :field_present?
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
inferno_core-0.5.2 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.5.1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.5.0 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.44 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.43 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.42 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.41 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.40 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.39 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.38 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.35 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.34 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.33 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.32 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.31 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.30 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.29 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.28 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.27 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.4.26 lib/inferno/apps/web/serializers/input.rb