Sha256: 69a16e4711951582afb5869f8a7edeafb1b0d45d49d6a5e4f043d2593bc968f4

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

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

        # @return [URI]
        define_property :measured_property, as: "measuredProperty", types: [
          "URI",
        ]

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

        # @return [DateTime,nil]
        define_property :margin_of_error, as: "marginOfError", types: [
          "DateTime",
          "null",
        ]

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/observation.rb
openactive-0.1.1 lib/openactive/models/schema/observation.rb
openactive-0.1.0 lib/openactive/models/schema/observation.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/observation.rb