나는 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은 텍스트가 아닌 배열이어야합니다. 여러 이미지를 업로드 할 수 있도록 어떻게 변경합니까?
감사합니다.
샘