class Safrano::FilterBase

Constants

EmptyFilter

re-useable empty filtering (idempotent)

Public Class Methods

factory(filterstr) click to toggle source
# File lib/odata/collection_filter.rb, line 14
def self.factory(filterstr)
  filterstr.nil? ? EmptyFilter : FilterByParse.new(filterstr)
end

Public Instance Methods

apply_to_dataset(dtcx) click to toggle source
# File lib/odata/collection_filter.rb, line 18
def apply_to_dataset(dtcx)
  Contract.valid(dtcx)
end
empty?() click to toggle source
# File lib/odata/collection_filter.rb, line 25
def empty?
  true
end
finalize(_jh) click to toggle source

finalize

# File lib/odata/collection_filter.rb, line 23
def finalize(_jh) Contract::OK end
parse_error?() click to toggle source
# File lib/odata/collection_filter.rb, line 29
def parse_error?
  false
end