Sha256: 5f0243a76fae2091a5baa1cb8ef9aa9d3a442d4a5baeb32dae1ea5975ae99990

Contents?: true

Size: 419 Bytes

Versions: 30

Compression:

Stored size: 419 Bytes

Contents

module Onoma
  module 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

30 entries across 30 versions & 1 rubygems

Version Path
onoma-0.9.3 lib/onoma/migration/actions/item_removal.rb
onoma-0.9.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.9.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.9.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.9 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.8 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.7 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.6 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.5 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.4 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.3 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.8.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.7.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.6.4 lib/onoma/migration/actions/item_removal.rb
onoma-0.6.3 lib/onoma/migration/actions/item_removal.rb
onoma-0.6.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.6.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.6 lib/onoma/migration/actions/item_removal.rb