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