Class: Onoma::Migration::Actions::NomenclatureRemoval
- Defined in:
- lib/onoma/migration/actions/nomenclature_removal.rb
Instance Attribute Summary collapse
-
#nomenclature ⇒ Object
(also: #name)
readonly
Returns the value of attribute nomenclature.
Instance Method Summary collapse
- #human_name ⇒ Object
-
#initialize(element) ⇒ NomenclatureRemoval
constructor
A new instance of NomenclatureRemoval.
Methods inherited from Base
Constructor Details
#initialize(element) ⇒ NomenclatureRemoval
Returns a new instance of NomenclatureRemoval.
7 8 9 10 |
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 7 def initialize(element) @nomenclature = element['nomenclature'] raise 'No given nomenclature' if @nomenclature.blank? end |
Instance Attribute Details
#nomenclature ⇒ Object (readonly) Also known as: name
Returns the value of attribute nomenclature.
5 6 7 |
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 5 def nomenclature @nomenclature end |
Instance Method Details
#human_name ⇒ Object
14 15 16 |
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 14 def human_name "Remove nomenclature #{@name}" end |