class ShopifyDashboardPlus::Report

Public Class Methods

new(orders) click to toggle source
# File lib/shopify_dashboard_plus/report.rb, line 9
def initialize(orders)
  @orders     = orders
  @line_items = orders.flat_map { |order| order.line_items.map { |line_item| line_item } }
end