Class: PowerBI::DatasetArray
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, workspace) ⇒ DatasetArray
constructor
A new instance of DatasetArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, workspace) ⇒ DatasetArray
Returns a new instance of DatasetArray.
75 76 77 78 |
# File 'lib/power-bi/dataset.rb', line 75 def initialize(tenant, workspace) super(tenant, workspace) @workspace = workspace 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
80 81 82 |
# File 'lib/power-bi/dataset.rb', line 80 def self.get_class Dataset end |
Instance Method Details
#get_data ⇒ Object
84 85 86 |
# File 'lib/power-bi/dataset.rb', line 84 def get_data @tenant.get("/groups/#{@workspace.id}/datasets")[:value] end |