Class: Riddle::Configuration::XMLSource
- Defined in:
- lib/riddle/configuration/xml_source.rb
Instance Attribute Summary
Attributes inherited from Source
Instance Method Summary collapse
-
#initialize(name, type) ⇒ XMLSource
constructor
A new instance of XMLSource.
- #valid? ⇒ Boolean
Methods inherited from Source
Constructor Details
#initialize(name, type) ⇒ XMLSource
Returns a new instance of XMLSource.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/riddle/configuration/xml_source.rb', line 11 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 |
Instance Method Details
#valid? ⇒ Boolean
24 25 26 |
# File 'lib/riddle/configuration/xml_source.rb', line 24 def valid? super && ( !@xmlpipe_command.nil? || !parent.nil? ) end |