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


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

.settingsObject


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

Returns:

  • (Boolean)

14
15
16
# File 'lib/riddle/configuration/tsv_source.rb', line 14

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