Sha256: 76b14fd4cad98bbdad1c79c0799f2874bf059dcd076e37bba523612d6813a971
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
require 'schema_dot_org' module SchemaDotOrg # Model the Schema.org `Thing > CreativeWork > WebSite`. # @See http://schema.org/WebSite class WebSite < SchemaType attr_accessor :name validates :name, type: String, presence: true attr_accessor :url validates :url, type: String, presence: true def _to_json_struct { name: self.name, url: self.url } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-1.3.0 | lib/schema_dot_org/web_site.rb |
schema_dot_org-1.2.1 | lib/schema_dot_org/web_site.rb |
schema_dot_org-1.2.0 | lib/schema_dot_org/web_site.rb |