Class: Linkage::Expectation
- Inherits:
-
Object
- Object
- Linkage::Expectation
- Defined in:
- lib/linkage/expectation.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) field_1
readonly
Returns the value of attribute field_1.
-
- (Object) field_2
readonly
Returns the value of attribute field_2.
-
- (Object) operator
readonly
Returns the value of attribute operator.
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Expectation) initialize(operator, field_1, field_2)
constructor
A new instance of Expectation.
-
- (Symbol) kind
:join or :filter.
Constructor Details
- (Expectation) initialize(operator, field_1, field_2)
A new instance of Expectation
9 10 11 12 13 |
# File 'lib/linkage/expectation.rb', line 9 def initialize(operator, field_1, field_2) @operator = operator @field_1 = field_1 @field_2 = field_2 end |
Instance Attribute Details
- (Object) field_1 (readonly)
Returns the value of attribute field_1
7 8 9 |
# File 'lib/linkage/expectation.rb', line 7 def field_1 @field_1 end |
- (Object) field_2 (readonly)
Returns the value of attribute field_2
7 8 9 |
# File 'lib/linkage/expectation.rb', line 7 def field_2 @field_2 end |
- (Object) operator (readonly)
Returns the value of attribute operator
7 8 9 |
# File 'lib/linkage/expectation.rb', line 7 def operator @operator end |
Class Method Details
+ (Object) get(type)
3 4 5 |
# File 'lib/linkage/expectation.rb', line 3 def self.get(type) TYPES[type] end |
Instance Method Details
- (Symbol) kind
:join or :filter
16 17 18 19 20 |
# File 'lib/linkage/expectation.rb', line 16 def kind if @field_1.dataset != @field_2.dataset :join end end |