Class: PowerBI::ParameterArray
Class Method Summary collapse
Instance Method Summary collapse
- #get_data ⇒ Object
-
#initialize(tenant, dataset) ⇒ ParameterArray
constructor
A new instance of ParameterArray.
Methods inherited from Array
Constructor Details
#initialize(tenant, dataset) ⇒ ParameterArray
Returns a new instance of ParameterArray.
16 17 18 19 |
# File 'lib/power-bi/parameter.rb', line 16 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
21 22 23 |
# File 'lib/power-bi/parameter.rb', line 21 def self.get_class Parameter end |
Instance Method Details
#get_data ⇒ Object
25 26 27 |
# File 'lib/power-bi/parameter.rb', line 25 def get_data @tenant.get("/groups/#{@dataset.workspace.id}/datasets/#{@dataset.id}/parameters")[:value] end |