Sha256: b55be76dc48f3c3b6cf83c31abe1ad4777716f03d1cdac618be0270f03db8bd3

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

class Parelation::Criteria

  # @return [ActiveRecord::Relation] the current criteria chain
  #
  attr_reader :chain

  # @return [String] the param param
  #
  attr_reader :param

  # @return [String] the param value
  #
  attr_reader :value

  # @param chain [ActiveRecord::Relation]
  # @param param [String]
  # @param value [String, Array, Hash]
  #
  def initialize(chain, param, value)
    @chain = chain
    @param = param.clone
    @value = value.clone
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parelation-1.0.0 lib/parelation/criteria.rb
parelation-0.2.0 lib/parelation/criteria.rb
parelation-0.1.0 lib/parelation/criteria.rb