Class: Sortiri::MissingColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/sortiri/missing_column.rb

Constant Summary

Constants inherited from Column

Column::ASCENDING_SIGN, Column::ASCENDING_SQL, Column::ASSOCIATION_DELIMITER, Column::DESCENDING_SIGN, Column::DESCENDING_SQL

Instance Attribute Summary

Attributes inherited from Column

#name_with_sign

Instance Method Summary collapse

Methods inherited from Column

#association, #name, #name_with_association

Constructor Details

#initializeMissingColumn

Returns a new instance of MissingColumn.



5
6
7
# File 'lib/sortiri/missing_column.rb', line 5

def initialize
  super(column: 'no name')
end

Instance Method Details

#asc?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/sortiri/missing_column.rb', line 17

def asc?
  false
end

#desc?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/sortiri/missing_column.rb', line 21

def desc?
  false
end

#directionObject



9
10
11
# File 'lib/sortiri/missing_column.rb', line 9

def direction
  ''
end

#direction_sqlObject



13
14
15
# File 'lib/sortiri/missing_column.rb', line 13

def direction_sql
  ''
end

#foreign_column?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/sortiri/missing_column.rb', line 33

def foreign_column?
  false
end

#toggle_directionObject



25
26
27
# File 'lib/sortiri/missing_column.rb', line 25

def toggle_direction
  ''
end

#toggle_icon_classObject



29
30
31
# File 'lib/sortiri/missing_column.rb', line 29

def toggle_icon_class
  ''
end