Class: Masking::Config::TargetColumns::Method::Time

Inherits:
Object
  • Object
show all
Defined in:
lib/masking/config/target_columns/method/time.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Time

Returns a new instance of Time.



8
9
10
# File 'lib/masking/config/target_columns/method/time.rb', line 8

def initialize(value)
  @time = value.strftime(FORMAT)
end

Instance Method Details

#callObject



12
13
14
# File 'lib/masking/config/target_columns/method/time.rb', line 12

def call
  "'#{time_format}'"
end