Sha256: 6450c45289c9fb2348a3b32aefbb3272b829b49fe4272de7c7e2d0519b8a3703

Contents?: true

Size: 319 Bytes

Versions: 32

Compression:

Stored size: 319 Bytes

Contents

module Presenter::Export
  class Statistics
    def initialize(wrapper)
      @wrapper = wrapper
      @view_model = wrapper.view_model
    end

    def build
      {
        transaction_type: @view_model.transaction_type,
      }
    rescue NoMethodError
      {
        transaction_type: 0,
      }
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
epb_view_models-2.0.5 lib/presenter/export/statistics.rb
epb_view_models-2.0.4 lib/presenter/export/statistics.rb
epb_view_models-2.0.3 lib/presenter/export/statistics.rb
epb_view_models-2.0.2 lib/presenter/export/statistics.rb
epb_view_models-2.0.1 lib/presenter/export/statistics.rb
epb_view_models-2.0.0 lib/presenter/export/statistics.rb
epb_view_models-1.2.3 lib/presenter/export/statistics.rb
epb_view_models-1.2.2 lib/presenter/export/statistics.rb
epb_view_models-1.2.1 lib/presenter/export/statistics.rb
epb_view_models-1.2.0 lib/presenter/export/statistics.rb
epb_view_models-1.1.6 lib/presenter/export/statistics.rb
epb_view_models-1.1.5 lib/presenter/export/statistics.rb
epb_view_models-1.1.4 lib/presenter/export/statistics.rb
epb_view_models-1.1.3 lib/presenter/export/statistics.rb
epb_view_models-1.1.2 lib/presenter/export/statistics.rb
epb_view_models-1.1.1 lib/presenter/export/statistics.rb
epb_view_models-1.1.0 lib/presenter/export/statistics.rb
epb_view_models-1.0.29 lib/presenter/export/statistics.rb
epb_view_models-1.0.28 lib/presenter/export/statistics.rb
epb_view_models-1.0.27 lib/presenter/export/statistics.rb