class TableSaw::Manifest::Table
Attributes
config[R]
variables[R]
Public Class Methods
new(variables, config)
click to toggle source
# File lib/table_saw/manifest.rb, line 11 def initialize(variables, config) @variables = variables @config = config end
Public Instance Methods
has_many()
click to toggle source
# File lib/table_saw/manifest.rb, line 32 def has_many config.fetch('has_many', []) end
partial?()
click to toggle source
# File lib/table_saw/manifest.rb, line 28 def partial? config.key?('query') end
query()
click to toggle source
# File lib/table_saw/manifest.rb, line 22 def query return unless partial? format(config['query'], variables.transform_keys(&:to_sym)) end
table()
click to toggle source
# File lib/table_saw/manifest.rb, line 16 def table config['table'] end
Also aliased as: name