Class: PowerBI::Array
- Inherits:
-
Object
- Object
- PowerBI::Array
- Defined in:
- lib/power-bi/array.rb
Direct Known Subclasses
CapacityArray, DatasetArray, DatasourceArray, GatewayArray, GatewayDatasourceArray, GatewayDatasourceUserArray, PageArray, ParameterArray, ProfileArray, RefreshArray, ReportArray, UserArray, WorkspaceArray
Instance Method Summary collapse
-
#initialize(tenant, parent = nil) ⇒ Array
constructor
A new instance of Array.
- #reload ⇒ Object
Constructor Details
#initialize(tenant, parent = nil) ⇒ Array
Returns a new instance of Array.
5 6 7 8 9 10 |
# File 'lib/power-bi/array.rb', line 5 def initialize(tenant, parent = nil) @fulfilled = false @content = nil @tenant = tenant @parent = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
29 30 31 |
# File 'lib/power-bi/array.rb', line 29 def method_missing(method, *args, &block) get_content.send(method, *args, &block) end |
Instance Method Details
#reload ⇒ Object
12 13 14 15 16 |
# File 'lib/power-bi/array.rb', line 12 def reload @fulfilled = false @content = nil self end |