Class: AhoyCaptain::ComparableQuery::Comparison::ComparisonResult

Inherits:
Object
  • Object
show all
Defined in:
app/queries/concerns/ahoy_captain/comparable_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_toObject (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

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