Sha256: 67935da3182b68ae00187ebe631001fa7ce65f781cd9b415e2baafa5d803385a
Contents?: true
Size: 1.59 KB
Versions: 3
Compression:
Stored size: 1.59 KB
Contents
require 'rubygems' require 'bundler/setup' require "openactive/dataset_site" feed_types = [ OpenActive::DatasetSite::FeedType::FACILITY_USE, OpenActive::DatasetSite::FeedType::SCHEDULED_SESSION, OpenActive::DatasetSite::FeedType::SESSION_SERIES, OpenActive::DatasetSite::FeedType::SLOT, ] settings = OpenActive::DatasetSite::Settings.new( open_data_feed_base_url: "http://example.com/feed/", dataset_site_url: "http://example.com/dataset/", dataset_discussion_url: "https://github.com/simpleweb/sw-oa-php-test-site", dataset_languages: ["en-GB"], organisation_name: "Simpleweb", organisation_url: "https://www.simpleweb.co.uk/", organisation_legal_entity: "Simpleweb Ltd", organisation_plain_text_description: "Simpleweb is a purpose driven software company that specialises in new "\ "technologies, product development, and human interaction.", organisation_logo_url: "https://simpleweb.co.uk/wp-content/uploads/2015/07/facebook-default.png", organisation_email: "spam@simpleweb.co.uk", background_image_url: "https://simpleweb.co.uk/wp-content/uploads/2017/06/IMG_8994-500x500-c-default.jpg", date_first_published: "2019-11-05", open_booking_api_base_url: "https://reference-implementation.openactive.io/api/openbooking", open_booking_api_registration_url: "https://example.com/api-landing-page", test_suite_certificate_url: "https://certificates.reference-implementation.openactive.io/examples/all-features/controlled/", data_feed_types: feed_types, ) renderer = OpenActive::DatasetSite::TemplateRenderer.new(settings) puts renderer.render
Version data entries
3 entries across 3 versions & 1 rubygems