Class: Onoma::Migration::Actions::NomenclatureRemoval

Inherits:
Base
  • Object
show all
Defined in:
lib/onoma/migration/actions/nomenclature_removal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

action_name, #action_name

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

#nomenclatureObject (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_nameObject



14
15
16
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 14

def human_name
  "Remove nomenclature #{@name}"
end