Sha256: 0ba0fe8d87d6b22bf8cd34d12d0b384b2346c17c1cde84747ec30ead6c1a3987

Contents?: true

Size: 522 Bytes

Versions: 24

Compression:

Stored size: 522 Bytes

Contents

module Dorsale
  module BillingMachine
    module SmallData
      class FilterForInvoices < ::Dorsale::SmallData::Filter
        STRATEGIES = {
          'customer_guid'  => FilterStrategyByCustomer.new('invoices'),
          'time_period'    => FilterStrategyByTimePeriod.new('invoices'),
          'payment_status' => FilterStrategyByPaymentStatus.new('invoices'),
        }

        def strategy key
          STRATEGIES[key]
        end

        def target
          'invoices'
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dorsale-2.2.6 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.5 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.4 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.3 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.2 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.1 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.0 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.15 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.14 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.13 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.12 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.11 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.10 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.9 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.8 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.7 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.6 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.5 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.4 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.3 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb