Sha256: d9f5ff44d9531b2ceb3a6aa7921499f8155d5c56efe0a82191445f53135c76c9
Contents?: true
Size: 318 Bytes
Versions: 3
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-2.1 | lib/schema_dot_org/place.rb |
schema_dot_org-2.0 | lib/schema_dot_org/place.rb |
schema_dot_org-1.8 | lib/schema_dot_org/place.rb |