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.1.2 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.1 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.1.0 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.0.1 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb