Sha256: 9367667f965feacc267a24e325add4d348669fe005fc151d4a7af51cf508c570
Contents?: true
Size: 393 Bytes
Versions: 11
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module Grape class Entity module Condition class SymbolCondition < Base attr_reader :symbol def setup(symbol) @symbol = symbol end def ==(other) super && @symbol == other.symbol end def if_value(_entity, options) options[symbol] end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems