Class: PowerBI::Array

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

Instance Method Summary collapse

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

#reloadObject



12
13
14
15
16
# File 'lib/power-bi/array.rb', line 12

def reload
  @fulfilled = false
  @content = nil
  self
end