Class: PowerBI::ProfileArray
- Inherits:
-
Array
- Object
- Array
- PowerBI::ProfileArray
show all
- Defined in:
- lib/power-bi/profile.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Array
#initialize, #reload
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
.get_class ⇒ Object
28
29
30
|
# File 'lib/power-bi/profile.rb', line 28
def self.get_class
Profile
end
|
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
|
40
41
42
|
# File 'lib/power-bi/profile.rb', line 40
def get_data
@tenant.get("/profiles", use_profile: false)[:value]
end
|