Class: PowerBI::DatasourceArray
- Defined in:
- lib/power-bi/datasource.rb
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, dataset) ⇒ DatasourceArray
constructor
A new instance of DatasourceArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, dataset) ⇒ DatasourceArray
Returns a new instance of DatasourceArray.
17 18 19 20 |
# File 'lib/power-bi/datasource.rb', line 17 def initialize(tenant, dataset) super(tenant) @dataset = dataset end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PowerBI::Array
Class Method Details
.get_class ⇒ Object
22 23 24 |
# File 'lib/power-bi/datasource.rb', line 22 def self.get_class Datasource end |
Instance Method Details
#get_data ⇒ Object
26 27 28 |
# File 'lib/power-bi/datasource.rb', line 26 def get_data @tenant.get("/groups/#{@dataset.workspace.id}/datasets/#{@dataset.id}/datasources")[:value] end |