Sha256: 420eba2c496582fefa58fd9381811f82c65361f9cfa7b7518f34b1348d0e72bb

Contents?: true

Size: 835 Bytes

Versions: 87

Compression:

Stored size: 835 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]
      
      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

87 entries across 87 versions & 17 rubygems

Version Path
DrMark-thinking-sphinx-1.1.14 vendor/riddle/lib/riddle/configuration/xml_source.rb
DrMark-thinking-sphinx-1.1.15 vendor/riddle/lib/riddle/configuration/xml_source.rb
DrMark-thinking-sphinx-1.1.6 vendor/riddle/lib/riddle/configuration/xml_source.rb
DrMark-thinking-sphinx-1.2.5 vendor/riddle/lib/riddle/configuration/xml_source.rb
DrMark-thinking-sphinx-1.2.6 vendor/riddle/lib/riddle/configuration/xml_source.rb
bterlson-thinking-sphinx-1.2.8 vendor/riddle/lib/riddle/configuration/xml_source.rb
dpickett-thinking-sphinx-1.1.12 vendor/riddle/lib/riddle/configuration/xml_source.rb
dpickett-thinking-sphinx-1.1.23 vendor/riddle/lib/riddle/configuration/xml_source.rb
dpickett-thinking-sphinx-1.1.4 vendor/riddle/lib/riddle/configuration/xml_source.rb
ebeigarts-thinking-sphinx-1.1.21 vendor/riddle/lib/riddle/configuration/xml_source.rb
ebeigarts-thinking-sphinx-1.1.22 vendor/riddle/lib/riddle/configuration/xml_source.rb
ebeigarts-thinking-sphinx-1.2.10 vendor/riddle/lib/riddle/configuration/xml_source.rb
factorylabs-thinking-sphinx-1.2.7 vendor/riddle/lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.2 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.3 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.4 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.5 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.7 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.8 lib/riddle/configuration/xml_source.rb
freelancing-god-riddle-0.9.8.1533.9 lib/riddle/configuration/xml_source.rb