Sha256: c6d65eb94626c2f3f3e8826fe0f968b532c719ce3363b0aebf45affb905e9f81

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

require 'date'
require 'schema_dot_org'

#
# Model the Schema.org `Thing > Place`.  See https://schema.org/Offer
#
module SchemaDotOrg
  class Offer < SchemaType
    validated_attr :priceCurrency, type: String
    validated_attr :price,         type: Numeric
    validated_attr :availability,  type: String, allow_nil: 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/offer.rb