class Safrano::ExpandBase

base class for expanding

Constants

EMPTYH
EmptyExpand

Attributes

template[R]

output template

Public Class Methods

factory(expandstr, model) click to toggle source
# File lib/odata/expand.rb, line 13
def self.factory(expandstr, model)
  expandstr.nil? ? EmptyExpand : MultiExpand.new(expandstr, model)
end

Public Instance Methods

apply_to_dataset(dtcx) click to toggle source
# File lib/odata/expand.rb, line 20
def apply_to_dataset(dtcx)
  Contract.valid(dtcx)
end
empty?() click to toggle source
# File lib/odata/expand.rb, line 24
def empty?
  true
end
parse_error?() click to toggle source
# File lib/odata/expand.rb, line 28
def parse_error?
  Contract::OK
end