Class: Locomotive::RelationalAlgebra::SortDirection

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/locomotive/relational_algebra/ordering.rb

Overview

Sortdirection specifies which order a column should follow

Direct Known Subclasses

Ascending, Descending

Instance Method Summary collapse

Instance Method Details

#cloneObject



18
19
20
21
# File 'lib/locomotive/relational_algebra/ordering.rb', line 18

def clone
  # singleton
  self
end

#to_xmlObject



14
15
16
# File 'lib/locomotive/relational_algebra/ordering.rb', line 14

def to_xml
  self.class.to_s.split('::').last.downcase.to_sym
end