Class: Riddle::Configuration::SQLSource
- Defined in:
- lib/riddle/configuration/sql_source.rb
Instance Attribute Summary
Attributes inherited from Source
Instance Method Summary collapse
-
#initialize(name, type) ⇒ SQLSource
constructor
A new instance of SQLSource.
- #valid? ⇒ Boolean
Methods inherited from Source
Constructor Details
#initialize(name, type) ⇒ SQLSource
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/riddle/configuration/sql_source.rb', line 18 def initialize(name, type) @name = name @type = type @sql_query_pre = [] @sql_joined_field = [] @sql_file_field = [] @sql_attr_uint = [] @sql_attr_bool = [] @sql_attr_bigint = [] = [] @sql_attr_str2ordinal = [] @sql_attr_float = [] @sql_attr_multi = [] @sql_attr_string = [] @sql_attr_str2wordcount = [] @sql_field_string = [] @sql_field_str2wordcount = [] @sql_query_post = [] @sql_query_post_index = [] @unpack_zlib = [] @unpack_mysqlcompress = [] end |
Instance Method Details
#valid? ⇒ Boolean
42 43 44 45 |
# File 'lib/riddle/configuration/sql_source.rb', line 42 def valid? super && (!( @sql_host.nil? || @sql_user.nil? || @sql_db.nil? || @sql_query.nil? ) || !@parent.nil?) end |