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-10.1.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-10.0.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.28.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.27.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.26.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.26.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.25.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.24.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.23.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.22.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.21.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.20.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.19.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.18.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.17.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.17 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.16.1 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.16.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.15.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb
govuk_publishing_components-9.14.0 lib/govuk_publishing_components/presenters/machine_readable/how_to_schema.rb