Class: Vcloud::Core::QueryRunner
- Inherits:
-
Object
- Object
- Vcloud::Core::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
5 6 7 |
# File 'lib/vcloud/core/query_runner.rb', line 5 def initialize @fsi = Vcloud::Core::Fog::ServiceInterface.new end |
Instance Method Details
#available_query_types ⇒ Object
14 15 16 17 |
# File 'lib/vcloud/core/query_runner.rb', line 14 def available_query_types query_body = @fsi.get_execute_query() get_entity_types_in_record_format(query_body) end |
#run(type = nil, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/vcloud/core/query_runner.rb', line 9 def run(type=nil, ={}) raise ArgumentError, "Query API :format option is not supported" if [:format] get_all_results(type, ) end |