Sha256: 6f0bcc4cc2104c73f22f25f06b8917c37767e1421543b5c850a3996caec4b9c3

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

class Dorsale::BillingMachine::SmallData::FilterStrategyByCustomer < ::Dorsale::SmallData::FilterStrategy
  def apply(query, value)
    type, id = value.split("-", 2)
    query.where(customer_type: type, customer_id: id)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dorsale-3.4.0 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.3.0 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.2.0 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb