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.
80 81 82 83 |
# File 'lib/power-bi/dataset.rb', line 80 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
Instance Method Details
#get_data ⇒ Object
89 90 91 |
# File 'lib/power-bi/dataset.rb', line 89 def get_data @tenant.get("/groups/#{@workspace.id}/datasets")[:value] end |