Class: PowerBI::RefreshArray
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.
19 20 21 22 |
# File 'lib/power-bi/refresh.rb', line 19 def initialize(tenant, dataset) super(tenant) @dataset = dataset end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PowerBI::Array
Class Method Details
.get_class ⇒ Object
24 25 26 |
# File 'lib/power-bi/refresh.rb', line 24 def self.get_class Refresh end |
Instance Method Details
#get_data ⇒ Object
28 29 30 |
# File 'lib/power-bi/refresh.rb', line 28 def get_data @tenant.get("/groups/#{@dataset.workspace.id}/datasets/#{@dataset.id}/refreshes", {'$top': '3'})[:value] end |