Class: MetadataPresenter::BaseOperator
- Inherits:
-
Object
- Object
- MetadataPresenter::BaseOperator
- Defined in:
- app/operators/metadata_presenter/base_operator.rb
Direct Known Subclasses
ContainsOperator, DoesNotContainOperator, IsAnsweredOperator, IsNotAnsweredOperator, IsNotOperator, IsOperator
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
- #evaluate? ⇒ Boolean
-
#evaluate_collection? ⇒ Boolean
Method signature for collection components (a.k.a checkboxes).
-
#initialize(actual, expected) ⇒ BaseOperator
constructor
A new instance of BaseOperator.
Constructor Details
#initialize(actual, expected) ⇒ BaseOperator
Returns a new instance of BaseOperator.
5 6 7 8 |
# File 'app/operators/metadata_presenter/base_operator.rb', line 5 def initialize(actual, expected) @actual = actual @expected = expected end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
3 4 5 |
# File 'app/operators/metadata_presenter/base_operator.rb', line 3 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
3 4 5 |
# File 'app/operators/metadata_presenter/base_operator.rb', line 3 def expected @expected end |
Instance Method Details
#evaluate? ⇒ Boolean
10 11 12 |
# File 'app/operators/metadata_presenter/base_operator.rb', line 10 def evaluate? raise NotImplementedError end |
#evaluate_collection? ⇒ Boolean
Method signature for collection components (a.k.a checkboxes)
16 17 18 |
# File 'app/operators/metadata_presenter/base_operator.rb', line 16 def evaluate_collection? evaluate? end |