Sha256: e71463adaa51b51978a20272283a48e45816abb87748c3dc9452b7544468ef38

Contents?: true

Size: 1.31 KB

Versions: 22

Compression:

Stored size: 1.31 KB

Contents

# coding: utf-8

module ONIX
  class SupplyDetail
    include ROXML

    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

22 entries across 22 versions & 2 rubygems

Version Path
onix-0.9.5 lib/onix/supply_detail.rb
onix-0.9.4 lib/onix/supply_detail.rb
milkfarm-onix-0.8.13 lib/onix/supply_detail.rb
milkfarm-onix-0.8.12 lib/onix/supply_detail.rb
onix-0.9.3 lib/onix/supply_detail.rb
onix-0.9.2 lib/onix/supply_detail.rb
onix-0.9.1 lib/onix/supply_detail.rb
milkfarm-onix-0.8.11 lib/onix/supply_detail.rb
milkfarm-onix-0.8.10 lib/onix/supply_detail.rb
onix-0.9.0 lib/onix/supply_detail.rb
milkfarm-onix-0.8.9 lib/onix/supply_detail.rb
milkfarm-onix-0.8.8 lib/onix/supply_detail.rb
milkfarm-onix-0.8.7 lib/onix/supply_detail.rb
onix-0.8.5 lib/onix/supply_detail.rb
onix-0.8.4 lib/onix/supply_detail.rb
milkfarm-onix-0.8.6 lib/onix/supply_detail.rb
milkfarm-onix-0.8.5 lib/onix/supply_detail.rb
onix-0.8.3 lib/onix/supply_detail.rb
milkfarm-onix-0.8.3 lib/onix/supply_detail.rb
onix-0.8.2 lib/onix/supply_detail.rb