Sha256: d758d45f9420cb57bd95ccd6a47ae2a5a28e171cef625bb847701050c222dde0

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

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

        # @return [int,nil]
        define_property :required_max_age, as: "requiredMaxAge", types: [
          "int",
          "null",
        ]

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

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

        # @return [BigDecimal,nil]
        define_property :suggested_max_age, as: "suggestedMaxAge", types: [
          "Number",
          "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::MedicalCondition,URI]
        define_property :health_condition, as: "healthCondition", types: [
          "OpenActive::Models::Schema::MedicalCondition",
          "URI",
        ]

        # @return [int,nil]
        define_property :required_min_age, as: "requiredMinAge", types: [
          "int",
          "null",
        ]

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

        # @return [BigDecimal,nil]
        define_property :suggested_min_age, as: "suggestedMinAge", types: [
          "Number",
          "null",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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