Class: Vcloud::QueryRunner
- Inherits:
-
Object
- Object
- Vcloud::QueryRunner
- Defined in:
- lib/vcloud/core/query_runner.rb
Instance Method Summary collapse
- #available_query_types ⇒ Object
-
#initialize ⇒ QueryRunner
constructor
A new instance of QueryRunner.
- #run(type = nil, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ QueryRunner
4 5 6 |
# File 'lib/vcloud/core/query_runner.rb', line 4 def initialize @fsi = Vcloud::Fog::ServiceInterface.new end |
Instance Method Details
#available_query_types ⇒ Object
13 14 15 16 |
# File 'lib/vcloud/core/query_runner.rb', line 13 def available_query_types query_body = @fsi.get_execute_query() get_entity_types_in_record_format(query_body) end |
#run(type = nil, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/vcloud/core/query_runner.rb', line 8 def run(type=nil, ={}) raise ArgumentError, "Query API :format option is not supported" if [:format] get_all_results(type, ) end |