Class: GovukPublishingComponents::Presenters::CuratedTaxonomySidebarLinks
- Inherits:
-
Object
- Object
- GovukPublishingComponents::Presenters::CuratedTaxonomySidebarLinks
- Defined in:
- lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb
Instance Method Summary collapse
-
#initialize(content_item) ⇒ CuratedTaxonomySidebarLinks
constructor
A new instance of CuratedTaxonomySidebarLinks.
- #related_items ⇒ Object
Constructor Details
#initialize(content_item) ⇒ CuratedTaxonomySidebarLinks
Returns a new instance of CuratedTaxonomySidebarLinks.
5 6 7 |
# File 'lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb', line 5 def initialize(content_item) @content_item = content_item end |
Instance Method Details
#related_items ⇒ Object
9 10 11 12 13 14 |
# File 'lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb', line 9 def @related_items ||= taxon_links + elsewhere_on_gov_uk_links + elsewhere_on_the_web_links end |