Class: MetadataPresenter::BaseOperator

Inherits:
Object
  • Object
show all
Defined in:
app/operators/metadata_presenter/base_operator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



3
4
5
# File 'app/operators/metadata_presenter/base_operator.rb', line 3

def actual
  @actual
end

#expectedObject (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

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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)

Returns:

  • (Boolean)


16
17
18
# File 'app/operators/metadata_presenter/base_operator.rb', line 16

def evaluate_collection?
  evaluate?
end