Sha256: 5ebde74d7a57346fb3f3cc272051e7a068426f6ec800b47e3f76a47b0d117df8
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
# coding: utf-8 module ONIX # See also: SalesRights. ONIX 2.1 prefers NotForSale blocks if a product is # not for sale, but this can also be specified with SalesRightsType in # SalesRights. # class NotForSale include ROXML xml_name "NotForSale" xml_accessor(:rights_countries, :from => "RightsCountry", :to_xml => ONIX::Formatters.space_separated) { |v| v.split if v } xml_accessor(:rights_territories, :from => "RightsTerritory", :to_xml => ONIX::Formatters.space_separated) { |v| v.split if v } xml_accessor(:product_identifiers, :from => "ProductIdentifier", :as => [ONIX::ProductIdentifier]) xml_accessor(:publisher_name, :from => "PublisherName") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
milkfarm-onix-0.8.13 | lib/onix/not_for_sale.rb |
milkfarm-onix-0.8.12 | lib/onix/not_for_sale.rb |