Sha256: 145816ac7704cd56e52ccaf0f3fcaeac230866e47b82a5c8567bd9dd0eb267d1

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Masking
  class Config
    class TargetColumns
      class Method
        class Time
          def initialize(value)
            @time = value.strftime(FORMAT)
          end

          def call
            "'#{time_format}'"
          end

          private

          attr_reader :time
          FORMAT = '%Y-%m-%d %H:%M:%S'

          def time_format
            time
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
masking-1.1.0 lib/masking/config/target_columns/method/time.rb
masking-1.0.1 lib/masking/config/target_columns/method/time.rb
masking-1.0.0 lib/masking/config/target_columns/method/time.rb
masking-0.0.3 lib/masking/config/target_columns/method/time.rb