Sha256: 8d5b407f403a562021d593a9e2f9dd7454788b8fda503b21aece0f118194529d
Contents?: true
Size: 462 Bytes
Versions: 2
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 end def call "'#{time_format}'" end private attr_reader :time FORMAT = '%Y-%m-%d %H:%M:%S' def time_format time.strftime(FORMAT) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
masking-0.0.2 | lib/masking/config/target_columns/method/time.rb |
masking-0.0.1 | lib/masking/config/target_columns/method/time.rb |