Sha256: fd6064ae429ce053a1c69e2fff1b73b78c807b66f773885577ffe8cb713ac003
Contents?: true
Size: 979 Bytes
Versions: 5
Compression:
Stored size: 979 Bytes
Contents
# coding: utf-8 module ONIX class Set include ROXML include ONIX::ProductIdentifiers xml_name "Set" xml_reader :product_identifiers, :from => "ProductIdentifier", :as => [ONIX::ProductIdentifier] xml_accessor :title_of_set, :from => "TitleOfSet" def initialize(options = {}) options.symbolize_keys! self.initialize_product_identifiers(options) # Must be called to setup @product_identifiers array end # Following methods removed os of gem 0.8.9 (aliased for backwards compatible): alias_method :proprietary_set_id, :proprietary_id alias_method :proprietary_set_id=, :proprietary_id= # Following methods removed os of gem 0.8.9 (NOT backwards compatible): # original method -> replacement method # product_identifier(type) -> see product_identifiers.rb (eg, use isbn, lccn...) # product_identifier_set(type, value) -> see product_identifiers.rb (eg, use isbn=, lccn=...) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
milkfarm-onix-0.8.13 | lib/onix/set.rb |
milkfarm-onix-0.8.12 | lib/onix/set.rb |
milkfarm-onix-0.8.11 | lib/onix/set.rb |
milkfarm-onix-0.8.10 | lib/onix/set.rb |
milkfarm-onix-0.8.9 | lib/onix/set.rb |