2012-10-02 1 views
0

나는 ebayapi gem (https://github.com/codyfauser/ebay)을 사용하고 있습니다. 좋습니다. 그러나 일부 정의는 옳지 않습니다.루비 ebayapi 여러 그림 URL을

는 여러 장의 사진을 함께 지정하는 별도의 인접 PictureURL 요소에 각각의 URL을 보내려면 :

module Ebay # :nodoc: 
    module Types # :nodoc: 
    class PictureDetails 
     include XML::Mapping 
     include Initializer 
     root_element_name 'PictureDetails' 
     text_node :gallery_type, 'GalleryType', :optional => true 
     text_node :gallery_url, 'GalleryURL', :optional => true 
     text_node :photo_display, 'PhotoDisplay', :optional => true 
     text_node :picture_url, 'PictureURL', :optional => true 
     text_node :picture_source, 'PictureSource', :optional => true 
     text_node :gallery_duration, 'GalleryDuration', :optional => true 
    end 
    end 
end 

이베이 문서처럼 말한다. 대부분의 경우 첫 번째 URL의 그림은 목록의 상단에있는 그림에도 사용됩니다.

그래서 picture_url은 텍스트가 아닌 배열이어야합니다. 여러 이미지를 업로드 할 수 있도록 어떻게 변경합니까?

감사합니다.

답변

0

참조 포럼 정보 등 http://rubyforge.org/forum/forum.php?set=custom&forum_id=8344&style=nested&max_rows=50&submit=Change+View

온라인 정보의 대부분은 부실하고 최신 상태로 유지되지 보석 나타나는 몇 가지 문제를 regd. 코드에는 여러 포크가 있지만 다시 활성화되지는 않습니다. 정보의 "원천". 그러나 그것을 사용하는 일부 사람들처럼 보입니다.

좋은 정보가 있으면 알려주세요. Ta 브렌던 - 더