Class: PowerBI::PageArray
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, report) ⇒ PageArray
constructor
A new instance of PageArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, report) ⇒ PageArray
Returns a new instance of PageArray.
22 23 24 25 |
# File 'lib/power-bi/page.rb', line 22 def initialize(tenant, report) super(tenant, report) @report = report 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
31 32 33 |
# File 'lib/power-bi/page.rb', line 31 def get_data @tenant.get("/groups/#{@report.workspace.id}/reports/#{@report.id}/pages")[:value] end |