Sha256: 8bc0546f725fa6454968539409b1677d956c51f4ab90e636075b5e164f53c393

Contents?: true

Size: 859 Bytes

Versions: 1

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

module Canql #:nodoc: all
  module Nodes
    module BatchTypeNode
      def to_type
        string = respond_to?(:normalise) ? normalise : text_value
        string.upcase
      end
    end

    module PaediatricNode
      def normalise
        'paediatric'
      end
    end

    module Enote2Node
      def normalise
        'enote2'
      end
    end

    module BadgerNode
      def normalise
        'badger'
      end
    end

    module UcytoNode
      def normalise
        'ucyto'
      end
    end

    module NiptNode
      def normalise
        'nipt'
      end
    end

    module RddeathNode
      def normalise
        'rd_death'
      end
    end

    module UmumNode
      def normalise
        'umum'
      end
    end

    module CADeathNode
      def normalise
        'ca_death'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
canql-5.6.0 lib/canql/nodes/batch_types.rb