Sha256: c6edf5ea1f72fac2db97c22fb5f3ad95ebd80d91c7c5a135afeca29734505a02

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

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

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

        # @return [OpenActive::Models::Schema::StatisticalPopulation,URI]
        define_property :observed_node, as: "observedNode", types: [
          "OpenActive::Models::Schema::StatisticalPopulation",
          "URI",
        ]

        # @return [OpenActive::Enums::PropertyEnumeration,URI,nil]
        define_property :measured_property, as: "measuredProperty", types: [
          "OpenActive::Enums::PropertyEnumeration",
          "URI",
          "null",
        ]

        # @return [DateTime,nil]
        define_property :observation_date, as: "observationDate", types: [
          "DateTime",
          "null",
        ]

        # @return [OpenActive::Models::Schema::DataType]
        define_property :measured_value, as: "measuredValue", types: [
          "OpenActive::Models::Schema::DataType",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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