Class: Sprig::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/sprig/source.rb

Defined Under Namespace

Classes: ParserDeterminer, SourceDeterminer

Instance Method Summary collapse

Constructor Details

#initialize(table_name, args = {}) ⇒ Source

Returns a new instance of Source.



4
5
6
7
# File 'lib/sprig/source.rb', line 4

def initialize(table_name, args = {})
  @table_name = table_name
  @args       = args
end

Instance Method Details

#optionsObject



13
14
15
# File 'lib/sprig/source.rb', line 13

def options
  data[:options] || {}
end

#recordsObject



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

def records
  data[:records] || []
end