Class: Onoma::Migration::Actions::NomenclatureRemoval
- Inherits:
-
Base
- Object
- Base
- Onoma::Migration::Actions::NomenclatureRemoval
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
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
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
18
19
20
|
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 18
def human_name
"Remove nomenclature #{@name}"
end
|
#label ⇒ Object
14
15
16
|
# File 'lib/onoma/migration/actions/nomenclature_removal.rb', line 14
def label
"remove_nomenclature #{@name}"
end
|