Class: Flydata::Source::DataEntry

Inherits:
Component
  • Object
show all
Defined in:
lib/flydata/source/data_entry.rb

Constant Summary collapse

CONFIG_PARAMS =

Public Interface CONFIG_PARAMS

Has the definition of data entry parameters specific to the data source. Override

{
  sourcename_data_entry_preference: {
    source_specific_param1: { key: "subclass must define" },
  }
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Flydata::Source::Component

Class Method Details

.inherited(child_class) ⇒ Object


9
10
11
# File 'lib/flydata/source/data_entry.rb', line 9

def self.inherited(child_class)
  Source.register(child_class, self)
end

Instance Method Details

#config_paramsObject


23
24
25
# File 'lib/flydata/source/data_entry.rb', line 23

def config_params
  self.class::CONFIG_PARAMS
end