Class: IgnorableColumns::ColumnIgnore
- Inherits:
-
Struct
- Object
- Struct
- IgnorableColumns::ColumnIgnore
- Defined in:
- app/models/concerns/ignorable_columns.rb
Instance Attribute Summary collapse
-
#remove_after ⇒ Object
Returns the value of attribute remove_after.
-
#remove_never ⇒ Object
Returns the value of attribute remove_never.
-
#remove_with ⇒ Object
Returns the value of attribute remove_with.
Instance Method Summary collapse
Instance Attribute Details
#remove_after ⇒ Object
Returns the value of attribute remove_after
6 7 8 |
# File 'app/models/concerns/ignorable_columns.rb', line 6 def remove_after @remove_after end |
#remove_never ⇒ Object
Returns the value of attribute remove_never
6 7 8 |
# File 'app/models/concerns/ignorable_columns.rb', line 6 def remove_never @remove_never end |
#remove_with ⇒ Object
Returns the value of attribute remove_with
6 7 8 |
# File 'app/models/concerns/ignorable_columns.rb', line 6 def remove_with @remove_with end |
Instance Method Details
#safe_to_remove? ⇒ Boolean
7 8 9 10 11 |
# File 'app/models/concerns/ignorable_columns.rb', line 7 def safe_to_remove? return false if remove_never Date.today > remove_after end |