lib/onix/apa_product.rb
def other_text_set(type, value)
      text = other_text(type)

      if text.nil?
        text = ONIX::OtherText.new
        text.text_type_code = type
        product.text << text
      end

      # store the new value
      text.text = value.to_s
    end
def other_text_set(type, value)
      text = other_text(type)

      if text.nil?
        text = ONIX::OtherText.new
        text.text_type_code = type
        product.text << text
      end

      # store the new value
      text.text = value.to_s
    end
def other_text_set ( type , value ) text = other_text ( type ) if text . nil? text = ONIX :: OtherText . new text . text_type_code = type product . text << text end # store the new value text . text = value . to_s end
set the value of a particular other text value
set the value of a particular other text value