Sha256: 2036e31c7de8ff413f27223467b060629984152f9bb44835aa179d426e6c8261
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true require 'schema_dot_org' module SchemaDotOrg # Model the Schema.org `ContactPoint`. See http://schema.org/ContactPoint class ContactPoint < SchemaType validated_attr :telephone, type: String, presence: true validated_attr :contact_type, type: String, presence: true validated_attr :contact_option, type: String, allow_nil: true validated_attr :area_served, type: Array, allow_nil: true validated_attr :available_language, type: Array, allow_nil: true def _to_json_struct { 'telephone' => telephone, 'contactType' => contact_type, 'contactOption' => contact_option, 'areaServed' => area_served, 'availableLanguage' => available_language } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-2.2.0 | lib/schema_dot_org/contact_point.rb |