Sha256: 24b43deae8d2e8b1d4bb2094504d15a9245e7d2cb425a8fc7c2b35a2e2bc849d
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 KB
Contents
# coding: utf-8 module ONIX class SupplyDetail include ROXML include ONIX::Common xml_name "SupplyDetail" xml_accessor :supplier_ean_location_number, :from => "SupplierEANLocationNumber" xml_accessor :supplier_san, :from => "SupplierSAN" xml_accessor :supplier_name, :from => "SupplierName" xml_accessor :telephone_number, :from => "TelephoneNumber" xml_accessor :fax_number, :from => "FaxNumber" xml_accessor :email_address, :from => "EmailAddress" xml_accessor :websites, :from => "Website", :as => [ONIX::Website] xml_accessor :supplier_role, :from => "SupplierRole", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit xml_accessor :supply_to_country, :from => "SupplyToCountry" xml_accessor :supply_to_territory, :from => "SupplyToTerritory" xml_accessor :availability_status_code, :from => "AvailabilityStatusCode", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit xml_accessor :product_availability, :from => "ProductAvailability", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit xml_accessor :stock, :from => "Stock", :as => [ONIX::Stock] xml_accessor :pack_quantity, :from => "PackQuantity", :as => Fixnum xml_accessor :prices, :from => "Price", :as => [ONIX::Price] def initialize self.websites = [] self.stock = [] self.prices = [] end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
milkfarm-onix-0.7.7 | lib/onix/supply_detail.rb |
onix-0.7.8 | lib/onix/supply_detail.rb |
onix-0.7.7 | lib/onix/supply_detail.rb |
onix-0.7.6 | lib/onix/supply_detail.rb |