Class: PowerBI::Array

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

Instance Method Summary collapse

Constructor Details

#initialize(tenant) ⇒ Array

Returns a new instance of Array.



5
6
7
8
9
# File 'lib/power-bi/array.rb', line 5

def initialize(tenant)
  @fulfilled = false
  @content = nil
  @tenant = tenant
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



28
29
30
# File 'lib/power-bi/array.rb', line 28

def method_missing(method, *args, &block)
  get_content.send(method, *args, &block)
end

Instance Method Details

#reloadObject



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

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