Class: Riddle::Configuration::TSVSource
- Defined in:
- lib/riddle/configuration/tsv_source.rb
Instance Attribute Summary
Attributes inherited from Source
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, type = 'tsvpipe') ⇒ TSVSource
constructor
A new instance of TSVSource.
- #valid? ⇒ Boolean
Methods inherited from Source
Constructor Details
#initialize(name, type = 'tsvpipe') ⇒ TSVSource
Returns a new instance of TSVSource.
10 11 12 |
# File 'lib/riddle/configuration/tsv_source.rb', line 10 def initialize(name, type = 'tsvpipe') @name, @type = name, type end |
Class Method Details
.settings ⇒ Object
4 5 6 |
# File 'lib/riddle/configuration/tsv_source.rb', line 4 def self.settings [:type, :tsvpipe_command, :tsvpipe_attr_field, :tsvpipe_attr_multi] end |
Instance Method Details
#valid? ⇒ Boolean
14 15 16 |
# File 'lib/riddle/configuration/tsv_source.rb', line 14 def valid? super && (@tsvpipe_command || @parent) end |