Class: PowerBI::Page
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Attributes inherited from Object
Instance Method Summary collapse
- #data_to_attributes(data) ⇒ Object
-
#initialize(tenant, parent, id = nil) ⇒ Page
constructor
A new instance of Page.
Methods inherited from Object
instantiate_from_data, #reload, #set_attributes
Constructor Details
#initialize(tenant, parent, id = nil) ⇒ Page
Returns a new instance of Page.
5 6 7 8 |
# File 'lib/power-bi/page.rb', line 5 def initialize(tenant, parent, id = nil) super(tenant, id) @report = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PowerBI::Object
Instance Attribute Details
#report ⇒ Object (readonly)
Returns the value of attribute report.
3 4 5 |
# File 'lib/power-bi/page.rb', line 3 def report @report end |
Instance Method Details
#data_to_attributes(data) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/power-bi/page.rb', line 10 def data_to_attributes(data) { name: data[:name], display_name: data[:displayName], order: data[:order], } end |