Class: PowerBI::RefreshArray
Instance Attribute Summary collapse
-
#entries_to_load ⇒ Object
Returns the value of attribute entries_to_load.
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, dataset) ⇒ RefreshArray
constructor
A new instance of RefreshArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, dataset) ⇒ RefreshArray
Returns a new instance of RefreshArray.
27 28 29 30 31 |
# File 'lib/power-bi/refresh.rb', line 27 def initialize(tenant, dataset) super(tenant, dataset) @dataset = dataset @entries_to_load = 1 end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PowerBI::Array
Instance Attribute Details
#entries_to_load ⇒ Object
Returns the value of attribute entries_to_load.
25 26 27 |
# File 'lib/power-bi/refresh.rb', line 25 def entries_to_load @entries_to_load end |
Class Method Details
Instance Method Details
#get_data ⇒ Object
44 45 46 |
# File 'lib/power-bi/refresh.rb', line 44 def get_data @tenant.get("/groups/#{@dataset.workspace.id}/datasets/#{@dataset.id}/refreshes", {'$top': @entries_to_load.to_s})[:value] end |