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.5.5 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.4 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.3 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.4.2 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.5.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.4.1 lib/onoma/migration/actions/item_removal.rb
onoma-0.4.0 lib/onoma/migration/actions/item_removal.rb
onoma-0.0.0 lib/onoma/migration/actions/item_removal.rb