Sha256: d280ca27e570cf065ea7bea4057958a9482c9249e6c284435fb8e38753f70de9
Contents?: true
Size: 1 KB
Versions: 21
Compression:
Stored size: 1 KB
Contents
# coding: utf-8 module ONIX class AudienceRange include ROXML xml_name "AudienceRange" xml_accessor :audience_range_qualifier, :from => "AudienceRangeQualifier", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit xml_accessor :audience_range_precisions, :from => "AudienceRangePrecision", :as => [Fixnum], :to_xml => [ONIX::Formatters.two_digit] # TODO: two_digit isn't working on the array items xml_accessor :audience_range_values, :from => "AudienceRangeValue", :as => [Integer] # TODO: element AudienceRange: validity error : # Element AudienceRange content does not follow the DTD, expecting # (AudienceRangeQualifier , AudienceRangePrecision , AudienceRangeValue , # (AudienceRangePrecision , AudienceRangeValue)?), # got # (AudienceRangeQualifier AudienceRangePrecision AudienceRangePrecision # AudienceRangeValue AudienceRangeValue ) def initialize self.audience_range_precisions = [] self.audience_range_values = [] end end end
Version data entries
21 entries across 21 versions & 2 rubygems