Sha256: 3b4f3e34ee71f96d0f9aae43173ccce959409ec0d5a5344d2f61a64a62fec6ab
Contents?: true
Size: 574 Bytes
Versions: 23
Compression:
Stored size: 574 Bytes
Contents
module GovukPublishingComponents module Presenters class OrganisationSchema attr_reader :page def initialize(page) @page = page end def structured_data # http://schema.org/GovernmentOrganization { "@context" => "http://schema.org", "@type" => "GovernmentOrganization", "mainEntityOfPage" => { "@type" => "WebPage", "@id" => page.canonical_url, }, "name" => page.title, "description" => page.body } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems