Sha256: 7228dbf84a9bcbaf4773d63f32fec54578c08e9e615cd408028d97848103e45b

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

module GovukPublishingComponents
  module Presenters
    class SearchResultsPageSchema
      def initialize(page)
        @page = page
      end

      def structured_data
        # http://schema.org/SearchResultsPage
        data = ArticleSchema.new(@page).structured_data
        data["@type"] = "SearchResultsPage"
        data
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-16.22.0 lib/govuk_publishing_components/presenters/machine_readable/search_results_page_schema.rb
govuk_publishing_components-16.21.0 lib/govuk_publishing_components/presenters/machine_readable/search_results_page_schema.rb
govuk_publishing_components-16.20.1 lib/govuk_publishing_components/presenters/machine_readable/search_results_page_schema.rb
govuk_publishing_components-16.20.0 lib/govuk_publishing_components/presenters/machine_readable/search_results_page_schema.rb