Sha256: 82075e483d21c224032470e89a576f256876c77503ca5a218ff4f6106b52f5b0
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
# typed: ignore # frozen_string_literal: true require 'schema_dot_org' module SchemaDotOrg # Model the Schema.org `Thing > Place`. See http://schema.org/Place class Place < SchemaType attr_accessor :address validates :address, type: String, presence: true def _to_json_struct { 'address' => address } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-1.7.1 | lib/schema_dot_org/place.rb |
schema_dot_org-1.7.0 | lib/schema_dot_org/place.rb |