Class: PowerBI::PageArray

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#reload

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

.get_classObject



27
28
29
# File 'lib/power-bi/page.rb', line 27

def self.get_class
  Page
end

Instance Method Details

#get_dataObject



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