Class: PowerBI::ReportArray

Inherits:
Array
  • Object
show all
Defined in:
lib/power-bi/report.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#reload

Constructor Details

#initialize(tenant, workspace) ⇒ ReportArray

Returns a new instance of ReportArray.



99
100
101
102
# File 'lib/power-bi/report.rb', line 99

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_classObject



104
105
106
# File 'lib/power-bi/report.rb', line 104

def self.get_class
  Report
end

Instance Method Details

#get_dataObject



108
109
110
# File 'lib/power-bi/report.rb', line 108

def get_data
  @tenant.get("/groups/#{@workspace.id}/reports")[:value]
end