class PowerBI::PageArray

Public Class Methods

get_class() click to toggle source
# File lib/power-bi/page.rb, line 21
def self.get_class
  Page
end
new(tenant, report) click to toggle source
Calls superclass method PowerBI::Array::new
# File lib/power-bi/page.rb, line 16
def initialize(tenant, report)
  super(tenant)
  @report = report
end

Public Instance Methods

get_data() click to toggle source
# File lib/power-bi/page.rb, line 25
def get_data
  data = @tenant.get("/groups/#{@report.workspace.id}/reports/#{@report.id}/pages")[:value]
  data.each { |d| d[:report] = @report }
end