Sha256: 40be69c31896e60d635fc38602bb7d9e75776655c7fc8588543ce20a3646da97
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true require 'schema_dot_org' require 'schema_dot_org/product' module SchemaDotOrg # Model the Schema.org `ItemListElement`. See https://schema.org/ItemListElement class ListItem < SchemaType validated_attr :image, type: String, allow_nil: true validated_attr :item, type: Product, allow_nil: true validated_attr :name, type: String, allow_nil: true validated_attr :position, type: Integer, presence: true validated_attr :url, type: String, allow_nil: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schema_dot_org-2.2.1 | lib/schema_dot_org/list_item.rb |