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