Class: Gatherable::Configuration
- Inherits:
-
Object
- Object
- Gatherable::Configuration
- Defined in:
- lib/gatherable/configuration.rb
Instance Attribute Summary collapse
-
#global_identifier ⇒ Object
Returns the value of attribute global_identifier.
- #schema_name ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#global_identifier ⇒ Object
Returns the value of attribute global_identifier.
4 5 6 |
# File 'lib/gatherable/configuration.rb', line 4 def global_identifier @global_identifier end |
#schema_name ⇒ Object
19 20 21 |
# File 'lib/gatherable/configuration.rb', line 19 def schema_name @schema_name || 'gatherable' end |
Instance Method Details
#data_point(name, data_type) ⇒ Object
7 8 9 |
# File 'lib/gatherable/configuration.rb', line 7 def data_point(name, data_type) data_tables << DataTable.new(name, {name => data_type}) end |
#data_table(name, columns) ⇒ Object
11 12 13 |
# File 'lib/gatherable/configuration.rb', line 11 def data_table(name, columns) data_tables << DataTable.new(name, columns) end |
#data_tables ⇒ Object
15 16 17 |
# File 'lib/gatherable/configuration.rb', line 15 def data_tables @data_tables ||= [] end |