Class: ODDB::Html::View::Drugs::Ddds

Inherits:
List
  • Object
show all
Defined in:
lib/oddb/html/view/drugs/atc_guidelines.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :administration, 
  [1,0] => :dose, 
  [2,0] => :comment, 
}
CSS_MAP =
{
  [1,0] => 'doses',
}
DEFAULT_CLASS =
HtmlGrid::Value
SORT_HEADER =
false

Constants inherited from List

List::BACKGROUND_ROW, List::BACKGROUND_SUFFIX, List::LEGACY_INTERFACE, List::SORT_DEFAULT

Instance Method Summary collapse

Methods inherited from List

#query_args, #query_key, #sort_link

Instance Method Details

#administration(model) ⇒ Object



28
29
30
31
# File 'lib/oddb/html/view/drugs/atc_guidelines.rb', line 28

def administration(model)
  ad = model.administration
  @lookandfeel.lookup("administration_#{ad}") { ad }
end