Class: Gatherable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gatherable/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#global_identifierObject

Returns the value of attribute global_identifier.



4
5
6
# File 'lib/gatherable/configuration.rb', line 4

def global_identifier
  @global_identifier
end

#schema_nameObject



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_tablesObject



15
16
17
# File 'lib/gatherable/configuration.rb', line 15

def data_tables
  @data_tables ||= []
end