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.
57 58 59 60 |
# File 'lib/power-bi/dataset.rb', line 57 def initialize(tenant, workspace) super(tenant) @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
62 63 64 |
# File 'lib/power-bi/dataset.rb', line 62 def self.get_class Dataset end |
Instance Method Details
#get_data ⇒ Object
66 67 68 69 |
# File 'lib/power-bi/dataset.rb', line 66 def get_data data = @tenant.get("/groups/#{@workspace.id}/datasets")[:value] data.each { |d| d[:workspace] = @workspace } end |