Class: Spider::QueryFuncs::UnaryFunction

Inherits:
Function show all
Defined in:
lib/spiderfw/model/query_funcs.rb

Direct Known Subclasses

AggregateFunction, Length, Substr, Trim

Instance Attribute Summary

Attributes inherited from Function

#mapper_fields

Instance Method Summary collapse

Methods inherited from Function

#aggregate?, #as, func_name, #func_name, #has_aggregates?, inherited, #inner_elements, #inspect

Constructor Details

#initialize(el) ⇒ UnaryFunction

Returns a new instance of UnaryFunction.



127
128
129
# File 'lib/spiderfw/model/query_funcs.rb', line 127

def initialize(el)
    @el = el
end

Instance Method Details

#elementsObject



131
132
133
# File 'lib/spiderfw/model/query_funcs.rb', line 131

def elements
    [@el]
end