class Grape::Entity::Condition::SymbolCondition

Attributes

symbol[R]

Public Instance Methods

==(other) click to toggle source
Calls superclass method Grape::Entity::Condition::Base#==
# File lib/grape_entity/condition/symbol_condition.rb, line 13
def ==(other)
  super && @symbol == other.symbol
end
if_value(_entity, options) click to toggle source
# File lib/grape_entity/condition/symbol_condition.rb, line 17
def if_value(_entity, options)
  options[symbol]
end
setup(symbol) click to toggle source
# File lib/grape_entity/condition/symbol_condition.rb, line 9
def setup(symbol)
  @symbol = symbol
end