Class: Riddle::Configuration::TSVSource

Inherits:
Source show all
Defined in:
lib/riddle/configuration/tsv_source.rb

Instance Attribute Summary

Attributes inherited from Source

#name, #parent, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Source

#render

Constructor Details

#initialize(name, type = 'tsvpipe') ⇒ TSVSource

Returns a new instance of TSVSource.



12
13
14
# File 'lib/riddle/configuration/tsv_source.rb', line 12

def initialize(name, type = 'tsvpipe')
  @name, @type = name, type
end

Class Method Details

.settingsObject



6
7
8
# File 'lib/riddle/configuration/tsv_source.rb', line 6

def self.settings
  [:type, :tsvpipe_command, :tsvpipe_attr_field, :tsvpipe_attr_multi]
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/riddle/configuration/tsv_source.rb', line 16

def valid?
  super && (@tsvpipe_command || @parent)
end