Sha256: 6faf1042655c441d7f6480cc7b123828047852303ce8ba0f4aa378d8381800b7

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

module Onoma
  class Migration
    module Actions
      class NomenclatureRemoval < Onoma::Migration::Actions::Base
        attr_reader :nomenclature

        def initialize(element)
          @nomenclature = element['nomenclature']
          raise 'No given nomenclature' if @nomenclature.blank?
        end

        alias name nomenclature

        def label
          "remove_nomenclature #{@name}"
        end

        def human_name
          "Remove 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/nomenclature_removal.rb
onoma-0.3.3 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.3.1 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.2.2 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.2.1 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.2.0 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.1.1 lib/onoma/migration/actions/nomenclature_removal.rb
onoma-0.1.0 lib/onoma/migration/actions/nomenclature_removal.rb