Class: Workarea::Admin::Dashboards::StoreViewModel

Inherits:
ApplicationViewModel
  • Object
show all
Defined in:
app/view_models/workarea/admin/dashboards/store_view_model.rb

Instance Method Summary collapse

Instance Method Details

#insightsObject



5
6
7
8
9
# File 'app/view_models/workarea/admin/dashboards/store_view_model.rb', line 5

def insights
  @insights ||= InsightViewModel.wrap(
    Workarea::Insights::Base.by_dashboard('store').page(options[:page])
  )
end