Class: Masking::Config::TargetColumns::Method::Time
- Inherits:
-
Object
- Object
- Masking::Config::TargetColumns::Method::Time
- Defined in:
- lib/masking/config/target_columns/method/time.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(value) ⇒ Time
constructor
A new instance of Time.
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
#call ⇒ Object
12 13 14 |
# File 'lib/masking/config/target_columns/method/time.rb', line 12 def call "'#{time_format}'" end |