Sha256: d26342a0bc61d008c639c1df3692894fc360b85d2f8dc0a4348cd13a20cd62c0

Contents?: true

Size: 912 Bytes

Versions: 17

Compression:

Stored size: 912 Bytes

Contents

module Riddle
  class Configuration
    class XMLSource < Riddle::Configuration::Source
      def self.settings 
        [
          :type, :xmlpipe_command, :xmlpipe_field,
          :xmlpipe_attr_uint, :xmlpipe_attr_bool, :xmlpipe_attr_timestamp,
          :xmlpipe_attr_str2ordinal, :xmlpipe_attr_float, :xmlpipe_attr_multi,
          :xmlpipe_fixup_utf8
        ]
      end
      
      attr_accessor *self.settings
      
      def initialize(name, type)
        @name = name
        @type = type
        
        @xmlpipe_field            = []
        @xmlpipe_attr_uint        = []
        @xmlpipe_attr_bool        = []
        @xmlpipe_attr_timestamp   = []
        @xmlpipe_attr_str2ordinal = []
        @xmlpipe_attr_float       = []
        @xmlpipe_attr_multi       = []
      end
            
      def valid?
        super && ( !@xmlpipe_command.nil? || !parent.nil? )
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
riddle-2.2.0 lib/riddle/configuration/xml_source.rb
riddle-2.1.0 lib/riddle/configuration/xml_source.rb
riddle-2.0.0 lib/riddle/configuration/xml_source.rb
riddle-1.5.12 lib/riddle/configuration/xml_source.rb
riddle-1.5.11 lib/riddle/configuration/xml_source.rb
riddle-1.5.10 lib/riddle/configuration/xml_source.rb
riddle-1.5.9 lib/riddle/configuration/xml_source.rb
riddle-1.5.8 lib/riddle/configuration/xml_source.rb
riddle-1.5.7 lib/riddle/configuration/xml_source.rb
riddle-1.5.6 lib/riddle/configuration/xml_source.rb
riddle-1.5.5 lib/riddle/configuration/xml_source.rb
riddle-1.5.4 lib/riddle/configuration/xml_source.rb
riddle-1.5.3 lib/riddle/configuration/xml_source.rb
riddle-1.5.2 lib/riddle/configuration/xml_source.rb
riddle-1.5.1 lib/riddle/configuration/xml_source.rb
riddle-1.5.0 lib/riddle/configuration/xml_source.rb
riddle-1.4.0 lib/riddle/configuration/xml_source.rb