Sha256: cf002c8e2ecc62be4564c9487eda96bf033b45ef9be725d58ba5ea32e3623366
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
module Calabash module IOS # @!visibility private module Routes # @!visibility private module MapRouteMixin def map_route(query, method_name, *method_args) request = make_map_request(query, method_name, *method_args) response = route_post_request(request) route_handle_response(response, query) end private def make_map_parameters(query, method_name, *method_args) { :operation => { :method_name => method_name, :arguments => method_args }, :query => query } end def make_map_request(query, method_name, *method_args) parameters = make_map_parameters(query, method_name, *method_args) begin Calabash::HTTP::Request.request('map', parameters) rescue => e raise Calabash::IOS::RouteError, e end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems