Method: Onoma::Migration::Actions::ItemCreation#human_name

Defined in:
lib/onoma/migration/actions/item_creation.rb

#human_nameObject



22
23
24
25
26
27
28
29
30
# File 'lib/onoma/migration/actions/item_creation.rb', line 22

def human_name
  updates = []
  updates << "#{@name} as name"
  updates << "#{@parent} as parent" if parent?
  @options.each do |k, v|
    updates << "#{v} as #{k}"
  end
  sentence = "Create item #{@nomenclature}##{@name} with " + updates.to_sentence
end