Sha256: 90b60dfad69bc6038e1b7101c1ca1c6daa95013cae8c5a3751381f93cb69a64c

Contents?: true

Size: 1.8 KB

Versions: 2

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 :smiles, as: "smiles", types: [
          "string",
        ]

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

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

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

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

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

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

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

        # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI]
        define_property :molecular_weight, as: "molecularWeight", types: [
          "string",
          "OpenActive::Models::Schema::QuantitativeValue",
          "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/molecular_entity.rb
openactive-0.4.0 lib/openactive/models/schema/molecular_entity.rb