Sha256: 08aa776ea212802274325e6a44cfb7a84a6aaa04a040a657ef0381664462cd98

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

module Tufy
  class BuildField
    include LightService::Action

    protected

    def self.transform_date(date)
      # TODO: Remove conditional
      # after data-integrity issues
      # have been resolved
      date ? date.strftime("%d%m%Y") : "00000000"
    end

    def self.remove_special_characters(string)
      string.gsub(/[^0-9A-Za-z]/, '')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tufy-0.0.8 lib/tufy/build_field.rb
tufy-0.0.7 lib/tufy/build_field.rb