lib/onix/apa_product.rb
def website_set(type, value)
      site = website(type)

      # create a new website record if we need to
      if site.nil?
        site = ONIX::Website.new
        site.website_role = type
        product.websites << site
      end

      site.website_link = value.to_s
    end
def website_set(type, value)
      site = website(type)

      # create a new website record if we need to
      if site.nil?
        site = ONIX::Website.new
        site.website_role = type
        product.websites << site
      end

      site.website_link = value.to_s
    end
def website_set ( type , value ) site = website ( type ) # create a new website record if we need to if site . nil? site = ONIX :: Website . new site . website_role = type product . websites << site end site . website_link = value . to_s end
set the value of a particular website
set the value of a particular website