Class: Onoma::Migration::Actions::ItemRemoval
- Defined in:
- lib/onoma/migration/actions/item_removal.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nomenclature ⇒ Object
readonly
Returns the value of attribute nomenclature.
Instance Method Summary collapse
- #human_name ⇒ Object
-
#initialize(element) ⇒ ItemRemoval
constructor
A new instance of ItemRemoval.
Methods inherited from Base
Constructor Details
#initialize(element) ⇒ ItemRemoval
Returns a new instance of ItemRemoval.
6 7 8 9 10 |
# File 'lib/onoma/migration/actions/item_removal.rb', line 6 def initialize(element) name = element['item'].split('#') @nomenclature = name.first @name = name.second end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/onoma/migration/actions/item_removal.rb', line 5 def name @name end |
#nomenclature ⇒ Object (readonly)
Returns the value of attribute nomenclature.
5 6 7 |
# File 'lib/onoma/migration/actions/item_removal.rb', line 5 def nomenclature @nomenclature end |
Instance Method Details
#human_name ⇒ Object
12 13 14 |
# File 'lib/onoma/migration/actions/item_removal.rb', line 12 def human_name "Remove item #{@nomenclature}##{@name}" end |