Class: Spider::QueryFuncs::BinaryFunction

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

Direct Known Subclasses

Subtract

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(el1, el2) ⇒ BinaryFunction

Returns a new instance of BinaryFunction.



139
140
141
142
# File 'lib/spiderfw/model/query_funcs.rb', line 139

def initialize(el1, el2)
    @el1 = el1
    @el2 = el2
end

Instance Method Details

#elementsObject



144
145
146
# File 'lib/spiderfw/model/query_funcs.rb', line 144

def elements
    [@el1, @el2]
end