class Gatherable::Configuration
Attributes
auth_method[W]
global_identifier[RW]
schema_name[W]
Public Instance Methods
auth_method()
click to toggle source
# File lib/gatherable/configuration.rb, line 23 def auth_method @auth_method || :session end
data_point(name, data_type, options = {})
click to toggle source
# File lib/gatherable/configuration.rb, line 7 def data_point(name, data_type, options = {}) data_tables << DataTable.new(name, {name => data_type}, options) end
data_table(name, columns, options = {})
click to toggle source
# File lib/gatherable/configuration.rb, line 11 def data_table(name, columns, options = {}) data_tables << DataTable.new(name, columns, options) end
data_tables()
click to toggle source
# File lib/gatherable/configuration.rb, line 15 def data_tables @data_tables ||= [] end
prefixed_resources()
click to toggle source
# File lib/gatherable/configuration.rb, line 27 def prefixed_resources @prefixed_resources ||= [] end
prefixed_resources=(resources)
click to toggle source
# File lib/gatherable/configuration.rb, line 31 def prefixed_resources=(resources) all_table_names = DataTable.all.keys @prefixed_resources = case resources when String, Symbol, Array Array(resources).map(&:to_sym) && all_table_names when Hash if resources.key?(:only) Array(resources[:only]).map(&:to_sym) && all_table_names elsif resources.key?(:except) all_table_names - Array(resources[:except]).map(&:to_sym) end end end
schema_name()
click to toggle source
# File lib/gatherable/configuration.rb, line 19 def schema_name @schema_name || 'gatherable' end