watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Not sure if this is the best/proper way to do things but it works... [lib/watson/remote.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/remote.rb line # : 37 tag : review md5 : 2a8d4b8ce99f23041e1318f7f87ef236

    # [review] - Not sure if this is the best/proper way to do things but it works...
            # Identify method entry
        debug_print "#{ self.class } : #{ __method__ }\n"

        # Merge default options with those passed in by user to form complete opt list
        opts = HTTP_opts.merge(opts)
                # Check URL in hash and get URI from it, then set up HTTP connection
        if opts[:url] =~ /^#{URI::regexp}$/
            _uri = URI(opts[:url]) 
        else
            debug_print "No URL specified in input opts, exiting HTTP call\n"
            return false
        end

nhmood avatar Nov 21 '13 16:11 nhmood