Class: Accessionable::ArrayExpressTag

Inherits:
Base::Tag
  • Object
show all
Defined in:
app/models/accessionable/sample.rb

Instance Attribute Summary

Attributes inherited from Base::Tag

#value

Instance Method Summary collapse

Methods inherited from Base::Tag

#build, #initialize

Constructor Details

This class inherits a constructor from Accessionable::Base::Tag

Instance Method Details

#labelObject


107
108
109
110
# File 'app/models/accessionable/sample.rb', line 107

def label
  default_tag = "ArrayExpress-#{I18n.t("#{@scope}.#{@name}.label").tr(" ", "_").camelize}"
  I18n.t("#{@scope}.#{@name}.ena_label", default: default_tag)
end