Sha256: 566f4223192585200df01d0022ffabf1aaf7d1bb38b68e417e213d924d5b6e34

Contents?: true

Size: 306 Bytes

Versions: 28

Compression:

Stored size: 306 Bytes

Contents

module Workarea
  module Admin
    module Reports
      class SalesByTenderViewModel < ApplicationViewModel
        def results
          @results ||= model.results.map do |result|
            OpenStruct.new(result.merge(name: result['_id'].titleize))
          end
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.6 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.5 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.4 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.3 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.2 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.1 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.0 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
workarea-admin-3.5.0.beta.1 app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb