Sha256: 8592daa335502a8e82fb9678a34fe75c76a2b4773a9b4580f99a03d369053176

Contents?: true

Size: 302 Bytes

Versions: 39

Compression:

Stored size: 302 Bytes

Contents

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
dorsale-2.3.5 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.3.4 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.3.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.3.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.3.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.3.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.16 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.15 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.14 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.13 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.12 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.11 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.10 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.9 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.8 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.6 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.5 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.4 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb