Sha256: 6f2d5c9118c3c01d2026e70622c38999a910aceede44f8bae9423e70779bbd2d

Contents?: true

Size: 418 Bytes

Versions: 8

Compression:

Stored size: 418 Bytes

Contents

module Onoma
  class Migration
    module Actions
      class ItemRemoval < Onoma::Migration::Actions::Base
        attr_reader :nomenclature, :name
        def initialize(element)
          name = element['item'].split('#')
          @nomenclature = name.first
          @name = name.second
        end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
onoma-0.3.4 lib/onoma/migration/actions/item_removal.rb
onoma-0.3.3 lib/onoma/migration/actions/item_removal.rb
onoma-0.3.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.2.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.2.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.2.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.1.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.1.0 lib/onoma/migration/actions/item_removal.rb