Class: Safrano::Filter::Node
- Inherits:
-
Object
- Object
- Safrano::Filter::Node
- Defined in:
- lib/odata/filter/base.rb,
lib/odata/filter/tree.rb
Overview
Base class for Leaves, Trees, RootTrees etc
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(val, &block) ⇒ Node
constructor
A new instance of Node.
- #success(res) ⇒ Object
Constructor Details
#initialize(val, &block) ⇒ Node
Returns a new instance of Node.
12 13 14 15 |
# File 'lib/odata/filter/tree.rb', line 12 def initialize(val, &block) @value = val instance_eval(&block) if block_given? end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/odata/filter/tree.rb', line 10 def value @value end |