Sha256: e5817565d79933eeb06aa932603835bf212f757381f852f864cb2eaf3bcfd61b

Contents?: true

Size: 228 Bytes

Versions: 8

Compression:

Stored size: 228 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dorsale-3.1.7 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.6 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.5 app/filters/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.4 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.3 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.2 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.1 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb
dorsale-3.1.0 app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb