Class | DisplayStruct::Item
In: | lib/design_api.rb
Parent: | ActionWebService::Struct

ItemSheet の構成要素のクラス。

### Methods

label_item

### Public Instance methods

label_item()

item を変更する。

[Source]

         # File lib/design_api.rb, line 251
    251:     def label_item
    252:       return if !item_id || item_id == 0
    253:       hash = Language.to_h
    254:       item = ::Item.find(item_id)
    255:       item.code = item_code
    256:       item_names.each do |n|
    257:         item.__send__("name_#{hash[n.language_id]}=", n.item_name)
    258:       end
    259:       item.save!
    260:     end

[Validate]