Class: Container::PillBox

Inherits:
Container show all
Defined in:
app/models/container/pill_box.rb

Constant Summary

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from Container

#disposition, #empty_container, #name, #print_label, #project_id, #size_x, #size_y, #size_z, #type

Class Method Summary collapse

Methods inherited from Container

#add_container_items, #all_collection_object_ids, #all_contained_objects, #all_container_items, #available_space, #check_for_contents, class_name, #collection_object_ids, #collection_objects, #contained_objects, #container_items, containerize, dimensions, #empty_contents, #is_empty?, #is_full?, #is_nested?, #size, #type_is_valid

Methods included from SoftValidation

#clear_soft_validations, #fix_for, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations, #soft_validators

Methods included from Shared::IsData

#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar

Methods included from Shared::Tags

#reject_tags, #tag_with, #tagged?, #tagged_with?

Methods included from Shared::Loanable

#all_loan_items, #all_loans, #container_loan_items, #container_loaned?, #container_loans, #container_times_loaned, #current_loan, #current_loan_item, #has_been_loaned?, #is_loanable?, #loan_return_date, #loaned_in_container, #on_loan?, #times_loaned

Methods included from Shared::Labels

#labeled?

Methods included from Shared::Identifiers

#dwc_occurrence_id, #identified?, #next_by_identifier, #previous_by_identifier, #reject_identifiers, #uri, #uuid

Methods included from Shared::Depictions

#has_depictions?, #image_array=, #reject_depictions, #reject_images

Methods included from Shared::Containable

#contain, #containable?, #contained?, #contained_by?, #contained_siblings, #enclosing_containers, #put_in_container

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Class Method Details

.valid_parentsObject



3
4
5
# File 'app/models/container/pill_box.rb', line 3

def self.valid_parents
  ['Container::Cabinet', 'Container::Virtual', 'Container::Box', 'Container::UnitTray']
end