Class: PowerBI::ReportArray
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, workspace) ⇒ ReportArray
constructor
A new instance of ReportArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, workspace) ⇒ ReportArray
Returns a new instance of ReportArray.
76 77 78 79 |
# File 'lib/power-bi/report.rb', line 76 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
81 82 83 |
# File 'lib/power-bi/report.rb', line 81 def self.get_class Report end |
Instance Method Details
#get_data ⇒ Object
85 86 87 88 |
# File 'lib/power-bi/report.rb', line 85 def get_data data = @tenant.get("/groups/#{@workspace.id}/reports")[:value] data.each { |d| d[:workspace] = @workspace } end |