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 12 def ==(other) super && @symbol == other.symbol end
if_value(_entity, options)
click to toggle source
# File lib/grape_entity/condition/symbol_condition.rb, line 16 def if_value(_entity, options) options[symbol] end
setup(symbol)
click to toggle source
# File lib/grape_entity/condition/symbol_condition.rb, line 8 def setup(symbol) @symbol = symbol end