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

#func_name, func_name, inherited, #inner_elements

Constructor Details

#initialize(el1, el2) ⇒ BinaryFunction

Returns a new instance of BinaryFunction.



100
101
102
103
# File 'lib/spiderfw/model/query_funcs.rb', line 100

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

Instance Method Details

#elementsObject



105
106
107
# File 'lib/spiderfw/model/query_funcs.rb', line 105

def elements
    [@el1, @el2]
end