Class: Spider::QueryFuncs::BinaryFunction

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

Instance Attribute Summary

Attributes inherited from Function

#mapper_fields

Instance Method Summary (collapse)

Methods inherited from Function

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

Constructor Details

- (BinaryFunction) initialize(el1, el2)

Returns a new instance of BinaryFunction



116
117
118
119
# File 'lib/spiderfw/model/query_funcs.rb', line 116

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

Instance Method Details

- (Object) elements



121
122
123
# File 'lib/spiderfw/model/query_funcs.rb', line 121

def elements
    [@el1, @el2]
end