Class: Sprig::Source
- Inherits:
-
Object
- Object
- Sprig::Source
- Defined in:
- lib/sprig/source.rb
Defined Under Namespace
Classes: ParserDeterminer, SourceDeterminer
Instance Method Summary collapse
-
#initialize(table_name, args = {}) ⇒ Source
constructor
A new instance of Source.
- #options ⇒ Object
- #records ⇒ Object
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
#options ⇒ Object
13 14 15 |
# File 'lib/sprig/source.rb', line 13 def data[:options] || {} end |
#records ⇒ Object
9 10 11 |
# File 'lib/sprig/source.rb', line 9 def records data[:records] || [] end |