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

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