Method: GoodData::Helpers::DataSource#initialize
- Defined in:
- lib/gooddata/helpers/data_helper.rb
#initialize(opts = {}) ⇒ DataSource
Returns a new instance of DataSource.
27 28 29 30 31 32 33 |
# File 'lib/gooddata/helpers/data_helper.rb', line 27 def initialize(opts = {}) opts = opts.is_a?(String) ? { type: :staging, path: opts } : opts opts = GoodData::Helpers.symbolize_keys(opts) @source = opts[:type] = opts @realized = false end |