Sha256: 9db2310e9e038098990a7628e56449515f9633c6b9e2b573c90ccaedfe30b3e5
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
# typed: ignore # frozen_string_literal: true require 'schema_dot_org' module SchemaDotOrg # Model the Schema.org `Thing > SearchAction`. See http://schema.org/SearchAction class SearchAction < SchemaType attr_accessor :target, :query_input validates :target, type: String, presence: true validates :query_input, type: String, presence: true def _to_json_struct { 'target' => target, 'query-input' => query_input ## ! Note the hyphen. } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-1.7.1 | lib/schema_dot_org/search_action.rb |