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.2.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.2.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.15 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.14 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.13 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.12 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.11 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.10 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.9 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.8 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.7 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.6 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.5 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.4 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.1.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-2.0.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb