Class: Momomoto::Order::Desc

Inherits:
Momomoto::Order show all
Defined in:
lib/momomoto/order.rb

Overview

This class is used for descending orders. It is derived from the Order class where you can find more information on usage.

Instance Attribute Summary

Attributes inherited from Momomoto::Order

#fields

Instance Method Summary collapse

Methods inherited from Momomoto::Order

#initialize, #to_sql

Constructor Details

This class inherits a constructor from Momomoto::Order

Instance Method Details

#function(argument) ⇒ Object

translates argument to SQL statement for descending.



109
110
111
# File 'lib/momomoto/order.rb', line 109

def function( argument )
  "#{argument} desc"
end