class Safrano::OrderBase

base class for ordering

Constants

EmptyOrder

re-useable empty ordering (idempotent)

Public Class Methods

factory(orderstr, jh) click to toggle source

input : the OData order string returns a Order object that should have a apply_to(cx) method

# File lib/odata/collection_order.rb, line 14
def self.factory(orderstr, jh)
  orderstr.nil? ? EmptyOrder : MultiOrder.new(orderstr, jh)
end

Public Instance Methods

apply_to_dataset(dtcx) click to toggle source
# File lib/odata/collection_order.rb, line 26
def apply_to_dataset(dtcx)
  dtcx
end
empty?() click to toggle source
# File lib/odata/collection_order.rb, line 18
def empty?
  true
end
parse_error?() click to toggle source
# File lib/odata/collection_order.rb, line 22
def parse_error?
  false
end