Sha256: e7310cccf39da3750a7b7a212dfa1f05bbcbd7eff26e2ced2000b9aa32f6a6dc

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

require 'date'
require 'schema_dot_org'
require 'schema_dot_org/aggregate_offer'

#
# Model the Schema.org `Thing > Place`.  See https://schema.org/Product
#
module SchemaDotOrg
  class Product < SchemaType
    validated_attr :description,  type: String, allow_nil: true
    validated_attr :image,        type: Array,  allow_nil: true
    validated_attr :name,         type: String
    validated_attr :offers,       type: SchemaDotOrg::AggregateOffer
    validated_attr :url,          type: String
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schema_dot_org-2.2.1 lib/schema_dot_org/product.rb