class GovukPublishingComponents::Presenters::StepByStepModel
@private
Attributes
content_item[R]
Public Class Methods
new(content_item)
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 198 def initialize(content_item) @content_item = content_item.deep_symbolize_keys end
Public Instance Methods
base_path()
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 206 def base_path content_item[:base_path] end
content()
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 214 def content content_item.dig(:details, :step_by_step_nav) end
content_id()
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 210 def content_id content_item[:content_id] end
steps()
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 218 def steps content_item.dig(:details, :step_by_step_nav, :steps) end
title()
click to toggle source
# File lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb, line 202 def title content_item[:title] end