lib/yui_rest_client/http/widget_controller.rb
# Find a widget using the filter.
# @param filter [Hash] identifiers to find a widget
# @return [Response]
Find a widget using the filter.
Find a widget using the filter .
def find(filter)
        res = nil
        Wait.until(timeout: @timeout, interval: @interval) do
          uri = HttpClient.compose_uri(@host, @port, "/#{API_VERSION}/widgets", filter)
          res = HttpClient.http_get(uri)
          Response.new(res) if res.is_a?(Net::HTTPOK)
        end
      rescue Error::TimeoutError
        rescue_errors(res)
      end
def find ( filter ) res = nil Wait . until ( timeout : @timeout , interval : @interval ) do uri = HttpClient . compose_uri ( @host , @port , "/#{API_VERSION}/widgets" , filter ) res = HttpClient . http_get ( uri ) Response . new ( res ) if res . is_a? ( Net :: HTTPOK ) end rescue Error :: TimeoutError rescue_errors ( res ) end
Find a widget using the filter.
Find a widget using the filter .
None
Response
filter
identifiers to find a widget
identifiers to find a widget