Method: Colrapi.source
- Defined in:
- lib/colrapi.rb
.source(dataset_id, source_id: nil, not_current_only: nil, original: nil, verbose: false) ⇒ Array, ...
Get source metadata for datasets assembled into a project dataset
838 839 840 841 842 843 844 845 846 |
# File 'lib/colrapi.rb', line 838 def self.source(dataset_id, source_id: nil, not_current_only: nil, original: nil, verbose: false) endpoint = "dataset/#{dataset_id}/source" if source_id.nil? Request.new(endpoint: endpoint, not_current_only: not_current_only, verbose: verbose).perform else endpoint = "dataset/#{dataset_id}/source/#{source_id}" Request.new(endpoint: endpoint, original: original, verbose: verbose).perform end end |