Class: PowerBI::ProfileArray
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Array
Constructor Details
This class inherits a constructor from PowerBI::Array
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PowerBI::Array
Class Method Details
Instance Method Details
#create(name) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/power-bi/profile.rb', line 32 def create(name) data = @tenant.post("/profiles", use_profile: false) do |req| req.body = {displayName: name}.to_json end self.reload Profile.instantiate_from_data(@tenant, nil, data) end |
#get_data ⇒ Object
40 41 42 |
# File 'lib/power-bi/profile.rb', line 40 def get_data @tenant.get("/profiles", use_profile: false)[:value] end |