Sha256: a7d0e1262dc59a4600c45c42cce81934e16c98813a665930b74aaa5d45fb0d80

Contents?: true

Size: 864 Bytes

Versions: 22

Compression:

Stored size: 864 Bytes

Contents

module Riddle
  class Configuration
    class XMLSource < Riddle::Configuration::Source
      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]
      
      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

22 entries across 22 versions & 2 rubygems

Version Path
riddle-1.3.3 lib/riddle/configuration/xml_source.rb
riddle-1.3.2 lib/riddle/configuration/xml_source.rb
riddle-1.3.1 lib/riddle/configuration/xml_source.rb
riddle-1.3.0 lib/riddle/configuration/xml_source.rb
riddle-1.2.2 lib/riddle/configuration/xml_source.rb
riddle-1.2.1 lib/riddle/configuration/xml_source.rb
riddle-1.2.0 lib/riddle/configuration/xml_source.rb
riddle-1.1.0 lib/riddle/configuration/xml_source.rb
skalee-thinking-sphinx-1.3.14.2 vendor/riddle/lib/riddle/configuration/xml_source.rb
skalee-thinking-sphinx-1.3.14.1 vendor/riddle/lib/riddle/configuration/xml_source.rb
riddle-1.0.12 lib/riddle/configuration/xml_source.rb
riddle-1.0.11 lib/riddle/configuration/xml_source.rb
riddle-1.0.10 lib/riddle/configuration/xml_source.rb
riddle-1.0.9 lib/riddle/configuration/xml_source.rb
riddle-1.0.8 lib/riddle/configuration/xml_source.rb
riddle-1.0.7 lib/riddle/configuration/xml_source.rb
riddle-1.0.6 lib/riddle/configuration/xml_source.rb
riddle-1.0.5 lib/riddle/configuration/xml_source.rb
riddle-1.0.4 lib/riddle/configuration/xml_source.rb
riddle-1.0.3 lib/riddle/configuration/xml_source.rb