Class: AhoyCaptain::ComparableQuery::Comparison::ComparisonResult
- Inherits:
-
Object
- Object
- AhoyCaptain::ComparableQuery::Comparison::ComparisonResult
- Defined in:
- app/queries/concerns/ahoy_captain/comparable_query.rb
Instance Attribute Summary collapse
-
#compared_to ⇒ Object
readonly
Returns the value of attribute compared_to.
-
#current ⇒ Object
readonly
Returns the value of attribute current.
Instance Method Summary collapse
-
#initialize(current, compared_to) ⇒ ComparisonResult
constructor
A new instance of ComparisonResult.
Constructor Details
#initialize(current, compared_to) ⇒ ComparisonResult
Returns a new instance of ComparisonResult.
6 7 8 9 |
# File 'app/queries/concerns/ahoy_captain/comparable_query.rb', line 6 def initialize(current, compared_to) @current = current @compared_to = compared_to end |
Instance Attribute Details
#compared_to ⇒ Object (readonly)
Returns the value of attribute compared_to.
5 6 7 |
# File 'app/queries/concerns/ahoy_captain/comparable_query.rb', line 5 def compared_to @compared_to end |
#current ⇒ Object (readonly)
Returns the value of attribute current.
5 6 7 |
# File 'app/queries/concerns/ahoy_captain/comparable_query.rb', line 5 def current @current end |