Sha256: 3fb23a3be5131bfefbbee4af13a54f060ecc81f0d9f589b0d9c5c8338d3ac2ae

Contents?: true

Size: 845 Bytes

Versions: 2

Compression:

Stored size: 845 Bytes

Contents

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

        # @return [OpenActive::Models::Schema::DefinedTerm,URI]
        define_property :chemical_role, as: "chemicalRole", types: [
          "OpenActive::Models::Schema::DefinedTerm",
          "URI",
        ]

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

        # @return [OpenActive::Models::Schema::DefinedTerm,URI]
        define_property :potential_use, as: "potentialUse", types: [
          "OpenActive::Models::Schema::DefinedTerm",
          "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/chemical_substance.rb
openactive-0.4.0 lib/openactive/models/schema/chemical_substance.rb