Sha256: f66dd482b64449a9780006ece160c3e8144108ed579e5ffb9d814eb8848c5750

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

module OpenActive
  module Models
    module Schema
      class SizeSpecification < ::OpenActive::JsonLdModel
        # @!attribute type
        # @return [String]
        def type
          "schema:SizeSpecification"
        end

        # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
        define_property :suggested_age, as: "suggestedAge", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
          "URI",
        ]

        # @return [OpenActive::Enums::Schema::SizeSystemEnumeration,String,nil]
        define_property :size_system, as: "sizeSystem", types: [
          "OpenActive::Enums::Schema::SizeSystemEnumeration",
          "string",
          "null",
        ]

        # @return [String,OpenActive::Enums::Schema::SizeGroupEnumeration,nil]
        define_property :size_group, as: "sizeGroup", types: [
          "string",
          "OpenActive::Enums::Schema::SizeGroupEnumeration",
          "null",
        ]

        # @return [String,OpenActive::Enums::Schema::GenderType,nil]
        define_property :suggested_gender, as: "suggestedGender", types: [
          "string",
          "OpenActive::Enums::Schema::GenderType",
          "null",
        ]

        # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
        define_property :suggested_measurement, as: "suggestedMeasurement", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
        define_property :has_measurement, as: "hasMeasurement", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
          "URI",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/size_specification.rb
openactive-0.4.0 lib/openactive/models/schema/size_specification.rb