Sha256: 16691cede9376df7a4860855c5fed5cbf8a13e495d5621ac9cc76578bbf43edf

Contents?: true

Size: 920 Bytes

Versions: 3

Compression:

Stored size: 920 Bytes

Contents

# typed: ignore
# frozen_string_literal: true

require 'date'

require 'schema_dot_org/person'
require 'schema_dot_org/place'
require 'schema_dot_org/organization'
require 'schema_dot_org/web_site'
include SchemaDotOrg

public_law = Organization.new(
  name: 'Public.Law',
  founder: Person.new(name: 'Robb Shecter'),
  founding_date: Date.new(2009, 3, 6),
  founding_location: Place.new(address: 'Portland, OR'),
  email: 'say_hi@public.law',
  url: 'https://www.public.law',
  logo: 'https://www.public.law/favicon-196x196.png',
  same_as: [
    'https://twitter.com/law_is_code',
    'https://www.facebook.com/PublicDotLaw'
  ]
)

puts public_law

site_info = WebSite.new(
  name: 'Texas Public Law',
  url: 'https://texas.public.law',
  potential_action: SearchAction.new(
    target: 'https://texas.public.law/?search={search_term_string}',
    query_input: 'required name=search_term_string'
  )
)

puts site_info

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
schema_dot_org-1.8 test-script.rb
schema_dot_org-1.7.1 test-script.rb
schema_dot_org-1.7.0 test-script.rb