dogweather/schema-dot-org

View on GitHub
lib/schema_dot_org/web_site.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true


#
# Model the Schema.org `Thing > CreativeWork > WebSite`.
# @See http://schema.org/WebSite
#
module SchemaDotOrg
  class WebSite < SchemaType
    validated_attr :name,             type: String, presence: true
    validated_attr :potential_action, type: SchemaDotOrg::SearchAction, allow_nil: true
    validated_attr :url,              type: String, presence: true
  end
end