Sha256: b94d2a71129239d94968ff71f40771a4179590c4c2a684447c1d0723cf330bcb

Contents?: true

Size: 415 Bytes

Versions: 30

Compression:

Stored size: 415 Bytes

Contents

module GovukPublishingComponents
  module Presenters
    class IsPartOfSchema
      def initialize(is_part_of_url)
        @is_part_of_url = is_part_of_url
      end

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
govuk_publishing_components-21.44.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.43.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.42.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.41.4 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.41.3 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.41.2 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.41.1 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.41.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.40.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.39.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.5 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.4 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.3 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.2 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.1 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.38.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.37.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.36.1 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.36.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb
govuk_publishing_components-21.35.0 lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb