Sha256: 1b661b7516dc6c88a42f1c7b291ee8af318c21f249c5775ef51045d1a9bdb8cd

Contents?: true

Size: 732 Bytes

Versions: 13

Compression:

Stored size: 732 Bytes

Contents

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

        def strategy key
          STRATEGIES[key]
        end

        def target
          "invoices"
        end

        def customer_guid
          get(__method__)
        end

        def bm_time_period
          get(__method__)
        end

        def bm_payment_status
          get(__method__)
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dorsale-2.3.5 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.3.4 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.3.3 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.3.2 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.3.1 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.3.0 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.16 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.15 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.14 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.13 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.12 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.11 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb
dorsale-2.2.10 app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb