Sha256: 71906ff88fadad381c2105432f456dc2c97aeff7d53e6c8510b91cc986b836cb

Contents?: true

Size: 306 Bytes

Versions: 22

Compression:

Stored size: 306 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.0.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.0.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.0.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.7.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.7.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.7.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.7.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.8 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.7 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.6 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.5 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.4 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.6.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.5.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.4.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.4.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb