Class: IgnorableColumns::ColumnIgnore

Inherits:
Struct
  • Object
show all
Defined in:
app/models/concerns/ignorable_columns.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#remove_afterObject

Returns the value of attribute remove_after

Returns:

  • (Object)

    the current value of remove_after



6
7
8
# File 'app/models/concerns/ignorable_columns.rb', line 6

def remove_after
  @remove_after
end

#remove_withObject

Returns the value of attribute remove_with

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


7
8
9
# File 'app/models/concerns/ignorable_columns.rb', line 7

def safe_to_remove?
  Date.today > remove_after
end

#to_sObject



11
12
13
# File 'app/models/concerns/ignorable_columns.rb', line 11

def to_s
  "(#{remove_after}, #{remove_with})"
end