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_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_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 |
# File 'app/models/concerns/ignorable_columns.rb', line 7 def safe_to_remove? Date.today > remove_after end |
#to_s ⇒ Object
11 12 13 |
# File 'app/models/concerns/ignorable_columns.rb', line 11 def to_s "(#{remove_after}, #{remove_with})" end |