Sha256: 51f2d683805dc3625893868b7dbe9f452ecaff89d181e6275b75d5b2ca62cd0a

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

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

        # @return [String]
        define_property :in_ch_ikey, as: "inChIKey", types: [
          "string",
        ]

        # @return [String]
        define_property :iupac_name, as: "iupacName", types: [
          "string",
        ]

        # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI]
        define_property :monoisotopic_molecular_weight, as: "monoisotopicMolecularWeight", types: [
          "string",
          "OpenActive::Models::Schema::QuantitativeValue",
          "URI",
        ]

        # @return [String]
        define_property :molecular_formula, as: "molecularFormula", types: [
          "string",
        ]

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

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

        # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI]
        define_property :molecular_weight, as: "molecularWeight", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
          "string",
          "URI",
        ]

        # @return [String]
        define_property :in_ch_i, as: "inChI", types: [
          "string",
        ]

        # @return [String]
        define_property :smiles, as: "smiles", types: [
          "string",
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openactive-0.3.0 lib/openactive/models/schema/molecular_entity.rb