class GovukPublishingComponents::Presenters::HighlightBoxesHelper

Public Class Methods

new(options) click to toggle source
# File lib/govuk_publishing_components/presenters/highlight_boxes_helper.rb, line 4
def initialize(options)
  @items = options[:items]
end

Public Instance Methods

data_tracking?() click to toggle source
# File lib/govuk_publishing_components/presenters/highlight_boxes_helper.rb, line 8
def data_tracking?
  @items.any? { |item| item[:link][:data_attributes] }
end