Sha256: cb7301339b87357726322b21cfd6543142b17ef7ef04e7fbb0bbe900c0c98283

Contents?: true

Size: 409 Bytes

Versions: 108

Compression:

Stored size: 409 Bytes

Contents

module GovukPublishingComponents
  module Presenters
    class HowToSchema
      attr_reader :how_to_url

      def initialize(how_to_url)
        @how_to_url = how_to_url
      end

      def structured_data
        # http://schema.org/HowTo - minimal
        {
          "@context" => "http://schema.org",
          "@type" => "HowTo",
          "sameAs" => how_to_url
        }
      end
    end
  end
end

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
govuk_publishing_components-16.23.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.22.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.21.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.20.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.20.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.19.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.18.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.17.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.16.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.15.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.14.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.14.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.13.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.12.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.11.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.10.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.10.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.9.2 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.9.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-16.9.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb