Module: Dina

Defined in:
lib/dina/search/search_autocomplete.rb,
lib/dina.rb,
lib/dina/version.rb,
lib/dina/exceptions.rb,
lib/dina/models/user.rb,
lib/dina/search/search.rb,
lib/dina/utils/validator.rb,
lib/dina/utils/identifier.rb,
lib/dina/models/assemblage.rb,
lib/dina/models/attachment.rb,
lib/dina/models/base_model.rb,
lib/dina/components/address.rb,
lib/dina/endpoints/endpoint.rb,
lib/dina/models/institution.rb,
lib/dina/casters/date_caster.rb,
lib/dina/casters/hash_caster.rb,
lib/dina/components/shipment.rb,
lib/dina/models/agent/person.rb,
lib/dina/search/search_count.rb,
lib/dina/casters/array_caster.rb,
lib/dina/components/agent_role.rb,
lib/dina/search/search_mapping.rb,
lib/dina/utils/identifier_type.rb,
lib/dina/models/sequence/region.rb,
lib/dina/models/agent/identifier.rb,
lib/dina/models/sequence/product.rb,
lib/dina/components/determination.rb,
lib/dina/components/protocol_data.rb,
lib/dina/models/managed_attribute.rb,
lib/dina/models/object_store/file.rb,
lib/dina/search/search_connection.rb,
lib/dina/models/agent/organization.rb,
lib/dina/models/sequence/index_set.rb,
lib/dina/models/sequence/pcr_batch.rb,
lib/dina/utils/multi_lingual_title.rb,
lib/dina/casters/multilingual_title.rb,
lib/dina/models/sequence/pcr_primer.rb,
lib/dina/components/scheduled_action.rb,
lib/dina/models/storage/storage_unit.rb,
lib/dina/models/sequence/ngs_workflow.rb,
lib/dina/authentication/authentication.rb,
lib/dina/endpoints/endpoint_connection.rb,
lib/dina/models/material_sample/project.rb,
lib/dina/models/object_store/derivative.rb,
lib/dina/models/transaction/transaction.rb,
lib/dina/components/geographic_thesaurus.rb,
lib/dina/models/material_sample/organism.rb,
lib/dina/models/material_sample/protocol.rb,
lib/dina/utils/multi_lingual_description.rb,
lib/dina/casters/multilingual_description.rb,
lib/dina/components/protocol_data_element.rb,
lib/dina/models/object_store/object_store.rb,
lib/dina/models/sequence/molecular_sample.rb,
lib/dina/models/storage/storage_unit_type.rb,
lib/dina/casters/multilingual_title_caster.rb,
lib/dina/components/georeference_assertion.rb,
lib/dina/models/material_sample/collection.rb,
lib/dina/models/storage/storage_unit_usage.rb,
lib/dina/models/object_store/object_subtype.rb,
lib/dina/models/object_store/file_connection.rb,
lib/dina/models/sequence/thermocycler_profile.rb,
lib/dina/models/material_sample/material_sample.rb,
lib/dina/casters/multilingual_description_caster.rb,
lib/dina/models/material_sample/collecting_event.rb,
lib/dina/models/material_sample/preparation_type.rb,
lib/dina/models/material_sample/collection_method.rb,
lib/dina/models/material_sample/preparation_method.rb,
lib/dina/components/geographic_place_name_source_detail.rb,
lib/dina/models/object_store/object_store_managed_attribute.rb,
lib/dina/models/material_sample/collection_sequence_generator.rb

Overview

TODO: requires testing, likely failing

Defined Under Namespace

Modules: MultiLingualDescription, MultiLingualTitle Classes: Address, AgentRole, ArrayCaster, Assemblage, Attachment, Authentication, BaseModel, CollectingEvent, Collection, CollectionMethod, CollectionSequenceGenerator, ConfigItemMissing, DateCaster, Derivative, Determination, DinaException, Endpoint, EndpointConnection, File, FileConnection, GeographicPlaceNameSourceDetail, GeographicThesaurus, GeoreferenceAssertion, HashCaster, Identifier, IdentifierType, IndexSet, Institution, ManagedAttribute, MaterialSample, MolecularSample, MultilingualDescription, MultilingualDescriptionCaster, MultilingualTitle, MultilingualTitleCaster, NgsWorkflow, ObjectInvalid, ObjectStore, ObjectStoreManagedAttribute, ObjectSubtype, Organism, Organization, PcrBatch, PcrPrimer, PersistentIdentifier, Person, PreparationMethod, PreparationType, Product, Project, PropertyInvalid, PropertyReadOnly, PropertyValueInvalid, Protocol, ProtocolData, ProtocolDataElement, Region, ScheduledAction, Search, SearchAutoComplete, SearchConnection, SearchCount, SearchMapping, Shipment, StorageUnit, StorageUnitType, StorageUnitUsage, ThermocyclerProfile, TokenStoreContentInvalid, TokenStoreFileNotFound, Transaction, User, Validator, Version

Class Method Summary collapse

Class Method Details

.classesObject



22
23
24
# File 'lib/dina.rb', line 22

def classes
  BaseModel.subclasses
end

.configObject



26
27
28
# File 'lib/dina.rb', line 26

def config
  Authentication.instance.config
end

.config=(options = {}) ⇒ Object



30
31
32
# File 'lib/dina.rb', line 30

def config=(options = {})
  Authentication.instance.config = options
end

.flushObject



38
39
40
# File 'lib/dina.rb', line 38

def flush
  Authentication.instance.flush
end

.flush_configObject



42
43
44
# File 'lib/dina.rb', line 42

def flush_config
  Authentication.instance.flush_config
end

.headerObject



34
35
36
# File 'lib/dina.rb', line 34

def header
  Authentication.instance.header
end