class Safrano::SelectBase

base class for selecting. We have to distinguish between fields of the current entity, and the navigation properties we can have one special case

empty, ie no $select specified --> return all fields and all nav props
          ==> SelectAll

Constants

ALL

Public Class Methods

factory(selectstr, model) click to toggle source
# File lib/odata/select.rb, line 17
def self.factory(selectstr, model)
  case selectstr&.strip
  when nil, '', '*'
    ALL
  else
    Select.new(selectstr, model)
  end
end

Public Instance Methods

all_props?() click to toggle source
# File lib/odata/select.rb, line 26
def all_props?
  false
end
parse_error?() click to toggle source
# File lib/odata/select.rb, line 34
def parse_error?
  Contract::OK
end