Class: Cnvrg::Hyper
- Inherits:
-
Object
- Object
- Cnvrg::Hyper
- Defined in:
- lib/cnvrg/hyper.rb
Instance Method Summary collapse
-
#initialize(project_path, path) ⇒ Hyper
constructor
A new instance of Hyper.
- #resolve_params ⇒ Object
Constructor Details
Instance Method Details
#resolve_params ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/cnvrg/hyper.rb', line 10 def resolve_params resp = Cnvrg::API.request(@base_resource + "/resolve_grid", "POST", {hyper_search: @content}) unless Cnvrg::CLI.is_response_success(resp, false) return nil end resp['result']['params'].each do |param| @params << {key: param.first.keys.first, value: param.map{|p| p.values}.flatten.join(',')} end @params end |