lib/cita/contract.rb
def parse_url
      uri = URI.parse(@url)
      @host = uri.host
      @port = uri.port
      @scheme = uri.scheme
    end
def parse_url
      uri = URI.parse(@url)
      @host = uri.host
      @port = uri.port
      @scheme = uri.scheme
    end
parse url to host, port and scheme