Sha256: 2c7dcdd61cd10c5e26ad39e6abc5d77c1ad12802a1ba5eeaac956355c8834607

Contents?: true

Size: 870 Bytes

Versions: 3

Compression:

Stored size: 870 Bytes

Contents

module OpenActive
  module Models
    # This type is derived from https://schema.org/PropertyValue, which means that any of this type's properties within schema.org may also be used.
    class PropertyValue < ::OpenActive::Models::Schema::PropertyValue
      # @!attribute type
      # @return [String]
      def type
        "PropertyValue"
      end

      # @return [String]
      define_property :name, as: "name", types: [
        "string",
      ]

      # @return [String]
      define_property :description, as: "description", types: [
        "string",
      ]

      # @return [String,URI]
      define_property :property_id, as: "propertyID", types: [
        "string",
        "URI",
      ]

      # @return [Boolean,String,nil]
      define_property :value, as: "value", types: [
        "bool",
        "string",
        "null",
      ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/property_value.rb
openactive-0.2.1 lib/openactive/models/property_value.rb
openactive-0.2.0 lib/openactive/models/property_value.rb