Sha256: 1a155c06f895dc341c19f891223b5ebfdad00626513981f537cd6a8dab940863

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 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
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schema_dot_org-1.7.0 lib/schema_dot_org/search_action.rb