Sha256: 8ba5d718a25f9d425b3a4d599c2cb08af18b1ee1124ac5f249848913f167c45d

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 Bytes

Contents

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 do |org|
  org.name = 'Public.Law'
  org.founding_date = Date.new(2009, 3, 6)
  org.email = 'say_hi@public.law'
  org.url = 'https://www.public.law'
  org.logo = 'https://www.public.law/favicon-196x196.png'
  org.founder = Person.new do |person|
    person.name = 'Robb Shecter'
  end
  org.founding_location = Place.new do |place| 
    place.address = 'Portland, OR'
  end
end

site_info = WebSite.new do |website|
  website.name = 'Texas Public Law'
  website.url  = 'https://texas.public.law'
end

puts site_info
puts public_law

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schema_dot_org-1.2.1 test-script.rb
schema_dot_org-1.2.0 test-script.rb